Git Product home page Git Product logo

halazv2 / online-bus-ticket-reservation Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 4.64 MB

Mekna'7, a subsidiary of the ONCF group, which provides bus services to cities not served by train, needs to set up a computer system by creating a database for managing customer reservations.

JavaScript 95.75% CSS 1.74% HTML 0.88% SCSS 1.63%
api express body-parser dotenv jwt mongodb mongoose nodemon backend javascript

online-bus-ticket-reservation's Introduction

Online-bus-ticket-reservation

Introduction

Hello everyone, this is a project that I have done for assignment. This project is a simple online bus ticket reservation system.

Technologies and libraries

Technologies || libraries why
express I have used express to create a server and to create a REST API.
mongoose I have used mongoose to connect to the database.
body-parser Used body-parser to parse the body of the request.
cors Used cors to allow cross-origin requests.
nodemon Used nodemon to automatically restart the server when the file changes.
bcrypt Used bcrypt to hash the password.
jsonwebtoken Used jsonwebtoken to create a token.
dotenv Used dotenv to load environment variables from a .env file.

How to run the project

  1. Clone the project
git clone
  1. Install dependencies
npm install
  1. Run the project
npm run dev

Endpoints

Method Endpoint Description
POST /api/v1/mekna7/signup Register a user
POST /api/v1/mekna7/signin Login a user

How to use the project

  1. Open postman

  2. Send a POST request to /api/v1/mekna7/signup to register a user

    • The request body should be in JSON format
    • The request body should contain the following fields:
      • full_name
      • email
      • age
      • password
  3. Send a POST request to /api/v1/mekna7/signin to login a user

    • The request body should be in JSON format
    • The request body should contain the following fields:
      • email
      • password

Author

Don't forget to give a โญ if you like this project.

online-bus-ticket-reservation's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.