The Leaderboard application consists of a backend written in Rails and the UI written using ReactJS.
The Rails app supports docker containerizing. You can just bring the service and database up and running by executing the command docker-compose up
inside the rails app directory.
- Clone this repository.
- Run the command
docker-compose up
to start the services cotainers. - Connect to the rails app container using the command
docker exec -it <container_id> bash
. - Now inside the rails app container, run the command
rake db:drop:all db:create:all db:migrate
to initialise and migrate the database. - The rails console can be opened by simply running
rails console
inside the rails app controller.
- Clone the UI repository.
- To install node modules and dependencies run
npm install
. - To run the development server, run
npm start
. - To create the build directory and static files for deployment, run
npm run build
. - To deploy the current UI to the AWS S3, run
npm run deploy
.