Code Monkey home page Code Monkey logo

restaraunt-reservation's Introduction

Capstone project: Restaurant Reservation System

Live demo:

Restaurant Reservation System

Application Summary:

A Restaurant Reservation System intended for internal use by restaurant employees. The "dashboard" page displays existing reservations for a specific date as well as possible table seating options. Here, the user can navigate to past/future dates and edit/delete reservations, as well as assign them to tables and mark them complete. The "create" page allows the user to create a new reservation within the restaurant's operating hours. The "search" page allows the user to enter a mobile number to pull up any existing reservations that match. The phone number is automatically formatted. The "new table" page allows for the creation of new tables to accommodate different party sizes.

Screenshots

Image of Dashboard Image of New Reservation

Tech Stack:

This application was created using JavaScript, React, Node, Express, Knex, PostgreSQL, BootStrap, HTML, and CSS.

API Documentation:

Route Method Status Code Description
/reservations GET 200 Returns a list of reservations for the current date
/reservations?date=####-##-## GET 200 Returns a list of reservations for the given date
/reservations POST 201 Creates a new reservation
/reservations/:reservation_id GET 200 Returns the reservation for the given ID
/reservations/:reservation_id PUT 200 Updates the reservation for the given ID
/reservations/:reservation_id/status PUT 200 Updates the status of the reservation for the given ID
/tables GET 200 Returns a list of tables
/tables POST 201 Creates a new table
/tables/:table_id GET 200 Returns the table for the given ID
/tables/:table_id/seat PUT 200 Seats a reservation at the given table_id
/tables/:table_id/seat DELETE 200 Changes the occupied status to be unoccupied for the given table_id

ER Diagram:

Table relations

Installation:

To install required dependencies:

npm install

To launch server and site preview in development mode:

npm start start:dev

To connect to a PostgreSql database:

cp ./back-end/.env.sample ./back-end/.env

Then, update the back-end .env files with your database information:

DATABASE_URL=enter-production-database-url
DATABASE_URL_DEVELOPMENT=enter-development-database-url
DATABASE_URL_TEST=enter-test-database-url
DATABASE_URL_PREVIEW=enter-preview-database-url
LOG_LEVEL=info

REACT_APP_API_BASE_URL=http://localhost:5000

Create the front-end .env files:

cp ./front-end/.env.sample ./front-end/.env

restaraunt-reservation's People

Contributors

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