Skip to content

Instantly share code, notes, and snippets.

@luscas
Last active January 18, 2019 11:46
Show Gist options
  • Save luscas/8ef45c31a35fd125c6120fc3b5ba7057 to your computer and use it in GitHub Desktop.
Save luscas/8ef45c31a35fd125c6120fc3b5ba7057 to your computer and use it in GitHub Desktop.
Clique & Retire

Clique & Retire

Build Status

Tech

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

Nuxt - Installation

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 dev

For production environments…

$ npm i -g pm2
$ npm run build
$ pm2 start npm -- start

API - Installation

$ composer install

Open the config/app.php file and configure the database.

$ php artisan jwt:secret
$ php artisan key:generate
$ php artisan migrate

About the API

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment