Giter VIP home page Giter VIP logo

meal-sharing's Introduction

Project logo

Meal sharing

Status License


Website 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 <--> Frontend

๐Ÿ Getting Started

The homework for week4 should be made in a standalone repo on your github profile, so you can show it friends/new employeers/headhunters etc.

Here are the steps to do that:

  1. Create a new repository on your github profile.
  2. Clone that repository down locally.
  3. Copy the code for the template from the this folder into the newly created repo.
  4. Now copy last weeks server folder into the new repo in the src folder. You will now have a server folder and a client folder in the src folder.
  5. Uncomment the lines that is for week4!
  6. Add, commit and push the changes to your github.
  7. In the hyf-homework/node/week4 just add a text file with the link to the newly created repo.
  8. Thats it ๐ŸŽ‰

Access server api

To access the server api, use localhost:3000/api

The traffic is being redirected (proxied) from localhiost:5000 where the server is running to localhost:3000/api. You can see that in the webpack.config.js file line 41.

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/serverdatabase.js file.

Prerequisites

Installing

To install run npm install

๐ŸŽˆ Usage

To run npm run dev

๐Ÿš€ Deployment

Set Heroku with automated builds to the master branch. push your code to the master branch.

โ›๏ธ Built Using

โœ๏ธ Authors

meal-sharing's People

Contributors

gizemcandemir avatar

Watchers

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