This is a simple blog API project written in Ruby on Rails. The main objective of this is to serve as a study and showcase for Ruby on Rails features.
3.1.2
PostgreSQL
Build and start cotainers:
docker-compose up
API will run on localhost:3000
.
If running for the first time, create the database:
docker compose run web rake db:create
If there are pending migrations, run migrations:
docker compose run web rake db:migrate
Make sure you have:
- Required Ruby version
- Bundler
- Postgres database running
bundle exec rake db:create
bundle exec rspec
bundle exec rails s
bundle exec rails c