Project developed as Rocketseat Launchbase's final challenge.
This application represents a theoretical project developed over Launchbase Bootcamp. It´s a recipes website based on Node.js and built using MVC design pattern. At Foodfy you can manage registered users, chefs and published recipes in our control panel which adapts according to users permission.
- Node.js + Express
- PostgreSQL
- Nunjucks
- HTML + CSS
- Clone this repository to your machine;
- Execute “npm install” command to install all necessary dependencies;
- Add your database access credentials to file “src/app/config/db.js”. You’ll need PostgreSQL to proceed.
- With your database online, execute the seed file (node seed.js) to populate the website with sample data.
- Add an image file to “public/images” with the name “placeholder.png” or use the one that is already there. All sample data will use this image.
Be careful while deleting users or chefs, because it will remove your ‘placeholder.png” file. We left a backup in the same folder, in case you lose it.😊
- Execute application with “npm start” command.
To access restricted area, just choose one user from table “users”, copy it´s e-mail address and use with password ‘1’.
If you want to test the recovery password feature, add your Mailtrap configuration to the file ‘src/lib/mailer.js’.
In case your database is already populated with Foodfy data, execute the cleaning routine which can be found in the file ‘database.sql’ under the tag ‘—to run seeds’.
You should create new chefs and recipes before testing the removing and editing features, because the sample data created by seed.js share the same placeholder image.
Released in 2020. This project is under the MIT license.
Proudly made by Patrick Paiva 👍 😆