Yes! Another project completed. After some thought, I decided to create a Recipe sharing system.
Here are the steps taken to complete this project.
-
Create a new repository on GitHub for Sinatra Application name “sinatra-recipe-box”
-
Setup file structure (files and directories)
- Create main files:
- README.md
- NOTE.md
- spec.md (copy from project assessment)
- LICENSE (created by github)
- config/environment.rb
- Gemfile then run bundle install to install any gems and gem dependencies for this application
- Rakefile
- config.ru
- Create the db tables and models.
- create tables, type rake db:create_migration NAME=create_yourtablename. Create all the table.
- run rake db:migrate, and all your tables will be added
-
Setup associations for the tables /app/models/
-
Add controllers, routes and views
-
Models: Concerns - add slugifiable for recipe.name and user.name
-
Controllers: add Helpers
-
Add user login, signup and logout
-
Add category controller, routes and views
-
Add recipes routes and views
-
Add edit processing
-
Add delete processing
-
Add processing for Ingredients and Instructions
- Add processing for Notes
That sums up the process I took to complete this project.