Giter Site home page Giter Site logo

bailador93 / nodejs_mysql_restrilogy Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 20 KB

Small reservation system for a restaurant. BackEnd side.

JavaScript 100.00%
bcrypt-nodejs body-parser cors dotenv express express-js jwt-authentication jwt-simple moment momentjs mysql2 mysql2-driver nodejs nodemon

nodejs_mysql_restrilogy's Introduction

Version Node JS

  • Node JS VERSION >=14.20.1

Description of this project

Small reservation system for a restaurant where a customer can make their reservation, then an administrator can see their reservation from their panel.

This project has 6 Endpoints:

    - Auth-User:
        http://localhost:4000/api/v1/auth/user-register
        http://localhost:4000/api/v1/auth/user-login

    - Reservation:
        http://localhost:4000/api/v1/reservation/post
        http://localhost:4000/api/v1/reservation/get
        http://localhost:4000/api/v1/reservation/get-search?
        http://localhost:4000/api/v1/reservation/get-reservations-userId/:id

AUTH ADMIN

You must create a new user who will be the restaurant employee, your username must be "adminOK" and password can be any:

  EG: ADMIN REGISTRATION 
    - User: adminOK
    - Pass: 123

Required file

You need to create an .env file to make use of the variables, same height as package.json file:

  ADMIN:
    - PORT=4000
    - PORT_BACKEND_LOCAL=4000
    - JWT_KEYWORD=ñishdahdlahsdjahsdñkashdkjshldjjlqwe

Run the application

To run this app you must do this:

  npm install
  npm start

  Listen on port: 3000 --> http://localhost:3000

Used Libraries

  Bcrypt Node JS VERSION 0.0.3
  Body Parser VERSION ^1.20.2
  Cors VERSION ^2.8.5
  Dotenv VERSION ^16.3.1
  Express JS VERSION ^4.18.2
  JWT Simple VERSION ^0.5.6
  Moment JS ^2.29.4
  MySQL 2 VERSION ^3.5.2
  Nodemon VERSION ^3.0.1

nodejs_mysql_restrilogy's People

Contributors

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