The setups steps expect following tools installed on the system.
I recommend using the ruby on rails installation guide from gorails.
- Github
- Ruby 3.0.0
- Rails 6.1.4.1
- PostgreSQL 12
- Redis 5.0.7
git clone [email protected]:PDS-UFAL/odados-ufal-api.git
Copy the sample .env.example file and edit the environment variables as required.
cp .env.example .env
Run the following commands to create and setup the database.
bundle exec rails db:create db:migrate db:seed
You can start the rails server using the command given below.
bundle exec rails s
And now you can use the api with the URL http://localhost:3000/api