Technologies used for the development of the application:
- Laravel PHP used for API creation
- Nuxt - HTML enhanced for web apps!
- node.js - evented I/O for the backend
This application requires Node.JS v6+ and Composer to run.
Install the dependencies and devDependencies and start the server.
$ cd client
$ npm install
$ npm run devFor production environments…
$ npm i -g pm2
$ npm run build
$ pm2 start npm -- start$ composer installOpen the config/app.php file and configure the database.
$ php artisan jwt:secret
$ php artisan key:generate
$ php artisan migrate| Route | Method | Controller |
|---|---|---|
| /api/login | POST | LoginController@login |
| /api/logout | POST | LogoutController@logout |
| /api/me | GET | MeController@me |
| /api/locker | GET | LockerController@index |
| /api/locker/:id | GET | LockerController@show |
| /api/locker/search/:locker | GET | LockerController@search |
| /api/maps/:address | GET | MapsController@address |
| /api/newsletter/subscribe | POST | NewsletterController@subscribe |
| /api/promotion/subscribe | POST | PromotionController@subscribe |
| /api/contact | POST | ContactController@create |