Skip to content

LucyChyzhova/italian_meals_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project logo

Meal sharing api

Status License


Website api for sharing meals together. Invite your best friends or your family for dinner!

📝 Table of Contents

🧐 About

This project is an exercise for HackYourFuture students to learn the concepts of full stack development with a focus on the connection between:

Database <--> Webserver

🏁 Getting Started

Check your node/week3 folder in the hyf-homework repo on your computer. If there already is a src folder, package.json etc, then you can just start working in that folder!

If not: copy the code for the template from this folder into the node/week3 folder in your hyf-homework repo on your computer.

Environment variables

All sensitive data like fx passwords and usernames, we dont want to add to git! This problem we solve by having environment variables. Environment variables are not committed to git and have a key value structure.

In the project there is a file called .env.example that has the correct structure. Copy this file and rename the copied file to .env. Now edit the credentials for your database.

The environment variables are then used in node using process.env.DB_HOST, you can see that in the src/server/database.js file.

Prerequisites

  • Postman
  • MySQL Workbench

Installing

To install run npm install

🎈 Usage

To run npm run dev

The api can now be found on http://localhost:3000/api/ an example is http://localhost:3000/api/meals

If you go to http://localhost:3000/ is will throw an error, dont mind this error! You will be working only on the api!

⛏️ Built Using

✍️ Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published