Code Monkey home page Code Monkey logo

datn-restaurant-management's Introduction

DATN - Restaurant Management

Building a website for managing restaurant business activties with ordering and table reservation functionalities for customers using ReactJS and NodeJS

Dependencies

  • Node (14+)
  • MySQL Server

Installation

Frontend

  • Cd into /frontend directory
  • Run command npm install to install dependencies
  • Add .env file inside root directory (see env.example for reference) and fill environment variables with backend url (usually http://localhost:5000)

Backend

  • Cd into /frontend directory
  • Run command npm install to install dependencies
  • Add .env file inside root directory (see env.example for reference) and fill environment variables
  • Set up AWS bucket with private permission and create an IAM user with put/get/delete permission. After successful setup on AWS, store IAM credentials in .env file
  • Set up Twillio account and get a trial phone number for testing. Make sure to set up a messaging service and add the acquired phone number to the service. Then store access credentials and messaging service SID in .env file
  • To initialize and seed database, run command npm run db-init. Make sure to turn on MySQL Server before running the command and replace credentials in .env file with your credentials to connect to MySQL Server

Usage

  • Cd into /backend and run command npm start (production mode) or npm run dev (development mode) to start backend server
  • Cd into /frontend and run command npm start to run frontend server and start using the website
  • The website has 2 groups of domains: one for restaurant staff with /admin prefix, and the other for customer. For example: http://localhost:5000 vs http://localhost:5000/admin. For referencing routes available, see paths in appRoutes.js file

Project structure

  • /frontend: Contains UI and logic code for frontend
  • /backend: Contains API code

datn-restaurant-management's People

Contributors

quanhoang288 avatar

Stargazers

Bui Manh Tuan 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.