Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 2.04 KB

README.md

File metadata and controls

72 lines (47 loc) · 2.04 KB

Delilah-Resto

A REST API to provide delivery food services, managing CRUD products and orders usign Node.js, MySQL, Swagger and JavaScript.

What I use to build this?

I want to know more about this API!

Sure, take a look over here to my Swaggerhub.

I want to run it locally!

You need to make sure you have a web server running, the easiest way to achieve this is with XAMPP otherwise this project isn't going to work in your local.

Clone the repository:

git clone https://github.com/Addin/Delilah-Resto.git

Install the required dependencies

Run the following command, make sure you are in the root folder.

If you are using NPM

npm install

If you are using Yarn

yarn install

Setup the database

You need to edit the file sequelize.js and change the data there to match your config, remember the structure (mysql://user:password@host:port/database), then export the file/script delilah.sql in your database manager, I recommend you to use HeidiSQL.

Run the server!

Make sure you are in the root of the folder, then simply run

npm start

and let the magic begin!

Want to contribute?

Open a Issue or help me with a pull request

TODOS

  • Use bcrypt for passwords
  • Make the front-end for consuming the back-end
  • Make the endpoint for logout