Rental Vehicle Backend is a project to provide server side for mobile and web rental vehicle projects built using ReactJs. This Vehicle Rental application accommodates consumers in vehicle rentals and the user can also have access to become a provider of vehicles for rent. This is server side project of vehicle rental project, this project buil for provide reactjs and react native project.
Clone this repository by run the following code:
$ git clone https://github.com/okidwijaya/rental-vehicle
$ cd <your directory>
Install dependency packages by run the following code inside project folder:
$ npm install
app.js
- The entry point to our application. This file defines our express server and connects it to MongoDB using mongoose. It also requires the routes and models we'll be using in the application.config/
- This folder contains configuration for passport as well as a central location for configuration/environment variables.routes/
- This folder contains the route definitions for our API.models/
- This folder contains the schema definitions for our sql models.controller/
- This folder contains the schema definitions for unctions that separate out the code to route requests from the code that actually processes requests.middleware/
- This folder contains the schema definitions for middleware .
- Auth
- Sign in
- Sign up
- Forgot password
- Product
- Add
- Edit
- Delete
- Update
- Profile
- Edit password
- Update profile
- Order
- Create transaction
- Edit transaction -Delete history
GET, POST /products
Parameter | Type | Description |
---|---|---|
api_key |
string |
:------------------------- |
GET, POST, PATCH, DELETE /products/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
:-------------------------------- |
GET, POST, /payment
Parameter | value | Description |
---|---|---|
api_key |
string |
:------------------------- |
DELETE /payment/${id}
Parameter | value | Description |
---|---|---|
api_key |
number |
:------------------------- |
APP_NAME = # default App Name