项目作者: joelcancela

项目描述 :
Server-side/Client-side Project (Polytech'Nice SI5 January-February 2019)
高级语言: Vue
项目地址: git://github.com/joelcancela/S9_SS-CS_Fooderoux.git
创建时间: 2019-03-03T23:08:57Z
项目社区:https://github.com/joelcancela/S9_SS-CS_Fooderoux

开源协议:MIT License

下载


S9_SS/CS_Fooderoux

Project combining the Server Side and the Client Side web courses. Full-stack web app about listing food and their characteristics (inspired by Open Food Facts).

Built with

  • Front-end
    • Vue.js
    • Vuetify
  • Back-end
    • Node
    • Express
    • MongoDB

Demo URLs (Deployed on Heroku)

Installation

Front-end

  1. cd projet_client_side_vuejs
  2. npm install
  3. npm run serve
  4. # Client app running at localhost:8080

Backend

  1. cd backend_node_express
  2. npm install
  3. npm start
  4. # Server listens at port 3000 or the one specified by the environnement variable: "PORT" (like Heroku does)

Documentation

Generation

  1. npm install apidoc -g # Install apidoc
  2. ./generate_doc.sh # Launches command to generate documentation

Consult

doc/index.html

Create your own database

  • Get a MongoDB Database (you can get one at mlab.com)
  • Install Mongo shell
  • Go to folder database_setup
  • Type the following commands:
    • mongorestore -h <hostname> -d <database_name> -u <user> -p <password> --collection france --drop --gzip france.bson.gz
    • mongorestore -h <hostname> -d <database_name> -u <user> -p <password> recipes.bson
  • Edit backend_node_express\mongodb\mongo.js
    • Change the following variables values: “url”, “dbName”

Authors

  • BONNY Pierre
  • CANCELA VAZ Joël
  • CASAGRANDE Guillaume
  • ROUSSEAU Nikita

Distribution of tasks

Front-end

  • Display of the aliments, recipes, stores and their locations on the map - Pierre
  • Display of the aliments, their characteristics, filters (and sorting), price and comments on recipes - Guillaume

Back-end

  • Implementation of a middleware to match stores with their cities and GPS location via OpenStreetMap - Nikita
  • Implementation of everything about stores and pricing. - Nikita

  • Connection to MongoDb - Joël

  • Creation of the food API and model - Joël
  • Creation of the recipe API - Joël
  • Splitted the application into modules - Joël