This is a small API application that provides some endpoints and business logic to allow customer creation and a referral process.
- Git
- Ruby [2.7.0]
- Rails [6.1.3]
- PostgreSQL [13.3.3]
git clone git@github.com:igor-dmd/referral-project.gitEnter you PostgreSQL credentials (user and password) on the application.yml correspondent fields.
# The credentials used for the database connection
DB_USERNAME: ''
DB_PASSWORD: ''Other configuration information can also be modified in this file.
Run the following commands to create and setup the database.
bundle exec rake db:create
bundle exec rake db:migrateYou can start the rails server using the command given below.
bundle exec rails sAnd now you can visit the site with the URL http://localhost:3000
You can run the test suite with the following command.
bundle exec rails test