The Recipe app keeps track of all your recipes and ingredients. It will allow you to save ingredients, keep track of what you have, create recipes, and generate a shopping list based on what you have and what you are missing from a recipe. Also, since sharing recipes is an important part of cooking the app should allow you to make them public so anyone can access them.
- Ruby on Rails
- PostgreSQL
- devise - for authentication
- cancancan - for authorization
To get a local copy up and running follow these simple steps:
- Ruby ruby-3.1.2 installed
- PostgreSQL dbms running
-
Open your terminal and navigate to the folder you would like to save the project.
-
Type these commands into the terminal:
git clone https://github.com/silviatofana/Recipe_app.git
cd recipe-app
bundle install
- You will need a
.env
file before you install and run the project. The.env
file contains environment variables needed to deploy the webpage. There is a commented.env.example
file you can use as a guide to configure your own. Type the following command into the terminal (or Git Bash, if using Windows) to create your.env
file:
cp .env.example .env
rails secret
-
Edit file .env
- Replace the value for the variable DEVISE_JWT_SECRET_KEY with the value returned by the
rails secret
command. - Provide values for DATABASE_HOST, DATABASE_USER and DATABASE_PASSWORD
- Replace the value for the variable DEVISE_JWT_SECRET_KEY with the value returned by the
-
Type this command into the terminal to reset the database:
rails db:reset
- Type this commands into the terminal:
rails server
- Open your web browser at http://127.0.0.1:3000/
- Type these commands into the terminal:
rspec spec -f doc lib
👤 Silvia Tofana
- GitHub: @silviatofana
- LinkedIn: Silvia Tofana
👤 ABDUL ALI
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse for the motivation.