Giter VIP home page Giter VIP logo

foodieland's Introduction

FoodieLand

Nodejs + Express + MongoDB + HTML5 + Heroku

Authors

Weihong Yang | Yuan Wang

Description

  • Web Development Project 2 : FoodieLand
  • Project Objective : Apply the concepts learned in class by building a basic fullstack application with Nodejs, Express, javascript, MongoDB and HTML5. Deploy on Heroku.

Project Intro

  • Build a network of community application called 'foodieLand' where people can dive into their favorite restaurants.
  • Registered users submit content to the site such as links, text posts, images which are then voted stars by other members.
  • Allowed user implement CRUD operations on it. The collections in the database would be based on the length from the user's current location and the numeric ranking of the chosen restaurant.

Design Mockup:

Link to Design-Mockup

Screenshots Preview:

Login

Edit Portfolio

Add review/ Upload photo

Review

Portfolio

Search

Rate

License

MIT

Functionalities

  • User can login and sign up (sign out) account. @Yuan Wang
  • User can add/delete restaurants with address, upload pictures, and write reviews. @Weihong Yang
  • User can edit their profile reviews and rate by stars from scale 1 to 5. @Yuan Wang
  • User can search profile to show the restaurant with related rating and comments. @Weihong Yang

Class Info

At the db folder, we have provided 2 JSON files to be used as a collection for the database.

  1. foodiehouse.json
  2. login.json

Creating local database

Before running the program we first need to create a local database. Run the following command in your terminal to start local mongo server: mongod --dbpath ~/data/db Keeping the local server running, open a new terminal and run the following to create nomadLocalDB database and import the given JSON files as collections:

  1. Projects collection
mongoimport -h localhost:27017 -d foodDB -c login --drop --jsonArray --file ./db/login.json 
  1. Users collection
mongoimport -h localhost:27017 -d foodDB -c foodiehouse --drop --jsonArray --file ./db/foodiehouse.json 

NOTE: In ./db/myMongoDB.js make sure the global constant is saying DB_NAME = "foodDB", otherwise the program cannot find the local database.

Running locally

Once the local database has been created, follow these steps to run locally:

  1. Run Mongo server: mongod --dbpath ~/data/db
  2. Run client server: npm start
  3. Using your browser go to localhost: http://locahost:3001/

For simply Clone or Download

$ git clone [email protected]:wyang10/Foodieland.git
$ npm start

Prerequirements

Instructions

  • Main folders:
    • db: Connections to databases and other operations.
    • public: Static files. Include frontend javascript, html files and corresponding css files.
    • routes: Backend javascript files.

foodieland's People

Contributors

wyang10 avatar

Watchers

 avatar

Forkers

f4ejkai

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.