Ruby on Rails project using the PaperTrail gem where we can see the customer's versions. We can view and revert a version, as well as restore a deleted customer.
- Ruby on Rails
- Bootstrap
- Sqlite3
- Rspec
- Docker
First you must have:
- Ruby >= 3.0.1 installed.
As soon as you have everything done you can follow
Clone the project
git clone https://github.com/RaquelLima7/second-challange.git
Go to the project directory
cd second-challange
If you want to rock and create your dev environment and data, it's possible to go through the usual way:
- And to bundle it with command:
bundle install
- Create databases
rails db:create
- Run migrations
rails db:migrate
- If you prefer, you can populate the database with the command:
rails db:seed
- Run tests
rspec
If you want to use Docker to create your development and data environment, you can follow the path below.
- Building the project
docker-compose build
- Start the application
docker-compose up
- Create database
docker-compose run web rails db:create
- Run migrations
docker-compose run web rails db:migrate
- If you prefer, you can populate the database with the command:
docker-compose run web rails db:seed
- Run tests
docker-compose run web rspec