GithubHelp home page GithubHelp logo

niteshthemerndeveloper / book-your-mentor Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 4.54 MB

Build a Book Your Mentor App using React, MongoDB, ExpressJs, and NodeJs. Also Include Authentication and Form Validation

Procfile 0.15% JavaScript 99.85%

book-your-mentor's Introduction

Build a Book Your Mentor App

Tools & Resources:

  1. MongoDB - To Store Orders and Users information
npm install mongoose
  1. Express - To Handle Backend Server

  2. NodeJs - Backend Language and Server Side Programming

-POSTMAN - Helps to Build, Test, Debug, and Document APIs-much-faster.

-VS Code - Most Popular and Most Used Code Editor that lets you write any Programming Language you love.

-JWT - JSON WEB TOKEN - Never blocks the business to be dependent on just one server. Security is top Notch.

-Git - A free and open source version control system that powers more than 70% of the world's application.

-GitHub - Well, Github has become my favorite platform to read, contribute, and share projects code.

API USAGE & ENDPOINTS

Register a User [POST /api/register]

  • Request: Add User and Request JSON web Token for Auth

    • Headers

      Content-type: application/json

    • Body

      { "name": "", "email": "", "password": "" }

  • Response: 200 (application/json)

    • Body

        {
          "token": ""
        }
      

Login with a User [POST /api/login]

  • Request: Login with credentials to receive a JSON web token

    • Headers

      Content-type: application/json
      
    • Body

          {
            "email": "",
            "password": ""
          }
      
  • Response: 200 (application/json)

    • Body

        {
          "token": ""
        }
      

Update Users Information [PUT /api/login/:id]

  • Request: Update Users Info and Get msg and the User

    • Headers

      Content-type: application/json x-auth-token: YOURJWT

    • Body

      { "email": "", "password": "" }

  • Response: 200 (application/json)

    • Body

        {
          "msg": "",
          "user": {},
        }
      

Book a Mentor [POST /api/proceed-to-checkout]

  • Request: Send Mentor Booking Id and receive checkout url and Order Details;

    • Headers

      Content-type: application/json

    • Body

      { "bookingId": 12 }

  • Response: 200 (application/json)

    • Body

        {
          "url": "",
          "orderDetails": {},
        }
      

Get Users Orders [GET /api/orders]

  • Request: Send Mentor Booking Id and receive checkout url and Order Details;

    • Headers

      Content-type: application/json x-auth-token: YOURJWT

    • Body

      { "bookingId": 12 }

  • Response: 200 (application/json)

    • Body

        {
          "url": "",
          "orderDetails": {},
        }
      

Thanks, Nitesh

book-your-mentor's People

Contributors

niteshthemerndeveloper avatar

Stargazers

 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.