FoodCycle is an application that allows merchants to post an add for food that remains at the end of the day or week that would otherwise be thrown out. The merchant is then able to recuperate some lost revenue by selling these remaining items at a discount. Users of the app can browse deals in their area and pay for them directly on the site, then simply pick them up before the end of the day.
The project team consists of Karine Seguin, Yu Liang, Saad Hafa & Fred Lavoie.
The html content is rendered on the client side using the ReactJS framework/library. React allow the developer to create the interactive parts of the app in JavaScript and render the html needed as well as change the html elements quickly making the application dynamic.
Using a front-end framework called Materialize, the application has a modern and responsive look that users expect. The application also makes use of Sass to give additional style customization to the content.
The back-end server is built using node.js and Express.js - a node.js framework. The back-ened serves as an API to the front end while the front-end does the navigation by rendering the various components.
- clone repository to your local machine
- create a
.env
file as per.env.example
and fill out the information required - in terminal, run
knex migrate:latest
in the 'backend' directory - in terminal, run
knex seed:run
in the 'backend' directory - in terminal, run
npm install
and thennpm start
in the 'client' directory - in terminal, run
npm install
and thennpm run dev
in the 'backend' directory - navigate to
localhost:3000
in your browser