This project was generated with Rails. Our main go is the create ond REST API to control the museum data.
We use:
- Rails: 6.1.4.4
- Ruby: 2.7.5
- Clone the repo and cd into it
$ docker compose up$ docker-compose upThe application will become available at the URL:
http://localhost:3000/
1 - To install new gems add on Gemfile and then run docker-compose build
2- The user Master will be found on db/seed.rb
To access rails console run.
docker-compose run --rm app shrails cMore indo on Rails Guide Command line and pry doc
It's never too early to begin running unit tests. Tests are run using RSpec testing framework and lives in the /spec folder. To run the tests:
docker-compose run --rm app rake
or into sh
rake
You too can run just one spec file into sh
rspec spec/{file_path}
This project uses the rubocop gem for linter, that config you can find on .rubocop.yml. Access the docker console and run by:
bundle exec rubocopUse
-ato autofix safe mode and-Ahardmode
On ubuntu:
inside de project folder run:
sudo chown your-user:your-user -R ./On Ubuntu:
On /etc/host add 127.0.0.1 localhost
Create your branch's and commits using english language and fallowing this guideline.
- Feature:
feat/branch-name - Hotfix:
hotfix/branch-name - POC:
poc/branch-name
- Chore:
chore(context): message - Feat:
feat(context): message - Fix:
fix(context): message - Refactor:
refactor(context): message - Tests:
tests(context): message - Docs:
docs(context): message
When open your mr on github use the MR template.