All Projects → geraudi → slim-react-skeleton

geraudi / slim-react-skeleton

Licence: other
Slim Framework 3 Skeleton Application

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects
ApacheConf
554 projects

Projects that are alternatives of or similar to slim-react-skeleton

REST-Api-with-Slim-PHP
REST API with PHP Slim Framework 3 and MySQL
Stars: ✭ 69 (+187.5%)
Mutual labels:  slim3
seotool
New version of my keyword tracking tool with additional features - works currently for google.de!
Stars: ✭ 52 (+116.67%)
Mutual labels:  slim3
slim-3-authentication
A Slim 3 authentication system.
Stars: ✭ 44 (+83.33%)
Mutual labels:  slim3

Slim Framework 3 Skeleton Application + ReactJs

Install

Slim 3

composer install

Webpack + ReactJs + Karma

Installation :

npm install

Run webpack dev server :

npm run start

Run test :

npm run test

##Config

###app/config/settings.php

Database

...
'pdo' => [
        'dns'      => 'mysql:dbname=my-db;host=127.0.0.1;charset=utf8',
        'user'     => 'root',
        'password' => 'root'
    ],
 ...

JWT

...
'auth' => [
        'jwtKey' => '6v9d5AN2Ka88E4dr', // <= Change here
        'requestAttribute' => 'jwt',
    ]
 ...

React Call API

####src/js/lib/api.js

...
axios.defaults.baseURL = 'http://example.com/api/v1/';
...
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].