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 [email protected]:igor-dmd/referral-project.git
Enter 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:migrate
You can start the rails server using the command given below.
bundle exec rails s
And now you can visit the site with the URL http:https://localhost:3000
You can run the test suite with the following command.
bundle exec rails test