This is a node.js online car reservation application powered by Express that provides the main functions you'd expect, an admin system, etc. Express.
How To Use • Credits • License • Api
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
- Run the backend of the application:
# Go into the folder Api
$ cd namX/Api
# Install dependencies
$ npm install
# Run the backend
$ npm run server
Note If you're using Linux Bash for Windows, see this guide or use
node
from the command prompt.
This application uses the following open source packages:
MIT
1- Auth
** Auth for Client
-
http://localhost:5000/api/v1/client/auth/register
**Auth for Admin -
http://localhost:5000/api/v1/admin/auth/register
2- Type
-
http://localhost:5000/api/v1/types ====> method: GET, @desc: get all types
-
http://localhost:5000/api/v1/trips ====> method:POST, @desc: create type
-
http://localhost:5000/api/v1/trips/:type_id ====> method:DELETE, @desc: delete type
-
http://localhost:5000/api/v1/trips/:type_id ====> method:PUT, @desc: update type
3- Car
-
http://localhost:5000/api/v1/cars ====> method: GET, @desc: get all cars
-
http://localhost:5000/api/v1/cars/:type_id ====> method: POST, @desc: create car
-
http://localhost:5000/api/v1/cars/:car_id ====> method: PUT, @desc: update car
-
http://localhost:5000/api/v1/cars/:car_id ====> method: DELETE, @desc: delete car
4- Color
-
http://localhost:5000/api/v1/colors ====> method: GET, @desc: get all colors
-
http://localhost:5000/api/v1/color ====> method: POST, @desc: create color
-
http://localhost:5000/api/v1/color/:color_id ====> method: PUT, @desc: update color
-
http://localhost:5000/api/v1/color/:color_id ====> method: DELETE, @desc: delete color
3- Orders
-
http://localhost:5000/api/v1/orders ====> method: GET, @desc: get all orders
-
http://localhost:5000/api/v1/orders/:trip_id/:client_id ====> method: POST, @desc: make order
GitHub @marouaneXan · Instagram @itsmemarouane