Giter VIP home page Giter VIP logo

dronedeliverysystem's Introduction

VIP Restaurant Drone Delivery System Project

Getting Started

Instructions to Setup the App

  • Make sure to have npm and MySQL installed before completing the rest of the ReadMe.

  • In order to install all dependencies required to run this project, direct yourself to the frontend and backend folders and run this command inside each one.

npm i
  • Then make sure that your MySQL server is running and use the following command in orer to reach MySQL through terminal:

Command for Mac:

/usr/local/mysql/bin/mysql -u root -p

It should prompt you to enter your MySQL password. Afte entering this password, run the following command to set up the database:

source <Directory for wherever the phase2+3.sql file is>

For example, this command might look like this on Mac:

source /Users/mridul/Documents/georgiatech/project/phase2+3.sql
  • After running this command, you should see several queries complete. Then you can
quit

in order to exit MySQL from the terminal.

You should also create a .env file with the password for your MySQL database inside the backend folder. The .env should look like this:

DB_PASSWORD="<Your DB Password>"

Instructions to Run the App

  • Then, run the following command within the backend folder to start the backend:
npm start
  • Run the same command again within the frontend folder to start the frontend. It should prompt you saying there is already something running on the port. Type 'y' to run the frontend a different port.

  • After this is complete, the localhost should automatically direct you to the proper localhost url within your web browser with port 3001. In order to test if both the frontend and backend are working, click the ingredients tab and make sure that data is appearing under each column.

Technologies Used

For this project, I created a web-application using React, Express, Node.js, and MySQL while also using Postman for our API testing. React was used to create the front-end and Express and Node.js were used to create our RESTful API as well as interact with our MySQL database. In order to update the database with operations completed through the front-end, I executed a variety of PUT and DELETE requests within our API that called the stored procedures that I implemented in phase 3. I used GET requests and a React Router in order to display each of the views on separate pages.

dronedeliverysystem's People

Contributors

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