Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/valterandrei/parking_manager_back
- Owner: ValterAndrei
- Created: 2020-11-11T20:36:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-22T14:57:25.000Z (11 months ago)
- Last Synced: 2024-02-22T15:52:31.695Z (11 months ago)
- Topics: api-rest, docker, docker-compose, github-actions, heroku, postgresql, rspec, ruby, ruby-on-rails
- Language: Ruby
- Homepage: https://parking-manager-back.herokuapp.com
- Size: 81.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.gitgit push heroku main
```