Production URL: https://blog-rb0e.onrender.com/
- Ruby 3.2.2
-
Install dependencies:
bundle install
-
Setup database server via docker (or any other mother):
docker run \ --name blog-db \ -p 5432:5432 \ -e POSTGRES_HOST_AUTH_METHOD=trust \ -d postgres:16-alpine
Database needs to have default user
postgres
with empty password. Server port is5432
. Please check theconfig/database.yml
file for more information. -
Setup database:
bundle exec rails db:create bundle exec rails db:migrate bundle exec rails db:seed
-
Start the app:
bundle exec foreman start -f Procfile.dev
After the steps above, the database will be prepopulated with some data. There will be 3 users which you can use to login:
- username:
aleksa1
, email:[email protected]
password:secret123
- username:
aleksa2
, email:[email protected]
password:secret123
- username:
aleksa3
, email:[email protected]
password:secret123