Echo is a application which allows users to create endpoints for themself and let's them hit the corresponding endpoints to get the response they provided while creating.
Echo uses a number of open source projects to work as expected:
- [Ruby on Rails] - Server-side web application framework
- [POSTGRESQL] - Relational database management system (RDBMS)
- [Redis] - In Memeory Cache server
The setups steps expect following tools installed on the system.
- Ruby [2.6.3]
- Rails [6.1.3.2]
- Postgresql [13.1]
- Redis [6.2.3]
bundle install
yarn install
Copy the sample database.yml file and edit the database configuration as required.
cp config/database.yml.sample config/database.yml
Run the following commands to create and setup the database. Run postgres server using postgresapp [Version 2.4.1 (100)]
createuser -s db_user_name
bundle exec rake db:create
bundle exec rake db:migrate
brew install redis
redis-server /usr/local/etc/redis.conf
You can start the rails server using the command given below.
bundle exec rails s
And now you can start hitting http://localhost:3000 using postman collection provided along with application. PostMan Collection: https://www.getpostman.com/collections/dfd33b437f447f66ec8f
bin/rails db:environment:set RAILS_ENV=test
bundle exec rspec