Skip to content

okidwijaya/rental-vehicle

Repository files navigation

Rental-Vehicle BackEnd

Rental Vehicle

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.

express bcrypt nodemailer jsonwebtoken multer cors

Installation

1. Clone this repository

Clone this repository by run the following code:

$ git clone https://github.com/okidwijaya/rental-vehicle

2. Go to directory

$ cd <your directory>

3. Install dependency packages

Install dependency packages by run the following code inside project folder:

$ npm install

Application Structure

  • 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 .

Documentation

Documentation

Features

  • Auth
    • Sign in
    • Sign up
    • Forgot password
  • Product
    • Add
    • Edit
    • Delete
    • Update
  • Profile
    • Edit password
    • Update profile
  • Order
    • Create transaction
    • Edit transaction -Delete history

API Reference Example

  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 :-------------------------

ENVIRONMENT VARIABLE

App name

APP_NAME = # default App Name

Configuration DB

Deploy

Heroku

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published