https://github.com/raquellima7/all-versions
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.
https://github.com/raquellima7/all-versions
bootstrap docker docker-compose papertrail rspec ruby-on-rails sqlite3
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/raquellima7/all-versions
- Owner: RaquelLima7
- Created: 2022-04-23T19:34:37.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T21:07:24.000Z (about 4 years ago)
- Last Synced: 2025-03-11T23:46:48.484Z (over 1 year ago)
- Topics: bootstrap, docker, docker-compose, papertrail, rspec, ruby-on-rails, sqlite3
- Language: Ruby
- Homepage:
- Size: 5.55 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# All Versions
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.
## Screenshot
- Index with all customers and show - creating a customer

- Editing a customer - deleting a customer

- View all customer versions - details page - revert version

- See all deleted customers - restore customer

## Stack the Project
- **Ruby on Rails**
- **Bootstrap**
- **Sqlite3**
- **Rspec**
- **Docker**
## Tests

## Building application
First you must have:
1. Ruby >= 3.0.1 installed.
As soon as you have everything done you can follow
## Run Project
Clone the project
```bash
git clone https://github.com/RaquelLima7/second-challange.git
```
Go to the project directory
```bash
cd second-challange
```
### 1. Building everything
If you want to rock and create your dev environment and data, it's possible to go through the usual way:
1. And to *bundle* it with command:
```
bundle install
```
2. Create databases
```
rails db:create
```
3. Run migrations
```
rails db:migrate
```
4. If you prefer, you can populate the database with the command:
```
rails db:seed
```
5. Run tests
```
rspec
```
### 2. Building everything with docker
If you want to use Docker to create your development and data environment, you can follow the path below.
#### Necessary documentation:
- [Docker](https://docs.docker.com/engine/install/ubuntu/)
- [Docker Compose](https://docs.docker.com/compose/install/)
1. Building the project
```
docker-compose build
```
2. Start the application
```
docker-compose up
```
3. Create database
```
docker-compose run web rails db:create
```
4. Run migrations
```
docker-compose run web rails db:migrate
```
5. If you prefer, you can populate the database with the command:
```
docker-compose run web rails db:seed
```
6. Run tests
```
docker-compose run web rspec
```