Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 5 hours 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T21:07:24.000Z (over 2 years ago)
- Last Synced: 2023-09-08T00:35:18.213Z (about 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
![](https://github.com/RaquelLima7/second-challange/blob/master/app/assets/images/01_screenshot.gif)
- Editing a customer - deleting a customer
![](https://github.com/RaquelLima7/second-challange/blob/master/app/assets/images/02_screenshot.gif)
- View all customer versions - details page - revert version
![](https://github.com/RaquelLima7/second-challange/blob/master/app/assets/images/03_screenshot.gif)
- See all deleted customers - restore customer
![](https://github.com/RaquelLima7/second-challange/blob/master/app/assets/images/04_screenshot.gif)
## Stack the Project
- **Ruby on Rails**
- **Bootstrap**
- **Sqlite3**
- **Rspec**
- **Docker**## Tests
![](https://github.com/RaquelLima7/second-challange/blob/master/app/assets/images/05_rspec.gif)
## Building applicationFirst 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 dockerIf 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
```