In this project, Users will be able to apply to adopt pets, and Admins will be able to approve or reject applications and see statistics for the Shelters, Pets, and Applications in the system.
- Build out CRUD functionality for a many to many relationship
- Use ActiveRecord to write queries that join multiple tables of data together
- Use MVC to organize code effectively, limiting the amount of logic included in views and controllers
- Validate models and handle sad paths for invalid data input
- Use flash messages to give feedback to the user
- Use partials in views
- Use
within
blocks in tests - Track user stories using GitHub Projects
- Deploy an application to Heroku
Getting Started
-
Create a new directory on your computer where you'd like the program to live
mkdir /Users/your_user_name/your_folder/adopt_dont_shop
-
Navigate into the recently created directory
/Users/your_user_name/your_folder $cd adopt_dont_shop
-
Clone the repository by clicking on the code button on Github repo page. Then, copy the repo information using SSH.
-
Inside the recently created directory, clone the recently copied repository information
$git clone git@github.com:JohnSantosuosso/adopt_dont_shop.git
-
Open the repository in your preferred IDE. If you are using VSCode, use the code command shown below.
$code
-
Reset and create & database:
$rails db:{drop,create,migrate,seed}
-
How to run the test suite:
rspec spec
-
Viewing instructions:
Run
rails s
in terminal.
In your web browser, enter the URLlocalhost:3000
and enter the site.