Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/valterandrei/parking_manager_back

Parking manager
https://github.com/valterandrei/parking_manager_back

api-rest docker docker-compose github-actions heroku postgresql rspec ruby ruby-on-rails

Last synced: about 2 months ago
JSON representation

Parking manager

Awesome Lists containing this project

README

        

## Parking Manager

![Rails Tests](https://github.com/ValterAndrei/mLabs_test/workflows/Rails%20Tests/badge.svg)

1. Build image
```
docker-compose build
```

2. Access bash
```
docker-compose run --rm web bash
```

3. Install dependencies
```
bundle
```

4. Setup database
```
rails db:setup
```

5. Tests
```
rspec
```

6. Linter/Formatter
```
rubocop
```

7. Run project
```
docker-compose up web
```

8. Restore production database
```
$ ./import_db_from_heroku.sh
```

---

### Run with debug in VSCode

1. Install extension _Ruby_
```
ext install rebornix.Ruby
```

2. Up the project
```
docker-compose -f docker-compose.yml -f docker-compose.debug.yml up
```

3. Press F5 to execute _launch.json_

---

### Run with byebug

1. Up the project
```
docker-compose run --rm --service-ports web
```

### Front-end
See [Parking Manager Front](https://github.com/ValterAndrei/parking_manager_front/).

### Production
[On heroku](https://parking-manager-front.herokuapp.com/)

---

### Deploy
```
git remote add heroku https://git.heroku.com/parking-manager-back.git

git push heroku main
```