A wild wild west of Indonesian community driven discussion platform.
MAINTAINING
Content |
---|
Status |
Links |
Requirements |
How to: Setup Project |
How to: Run Test Suite |
How to: Run App on Local |
How to: Run Dockerized App |
- Git
- Ruby
- Bundler
- PostgreSQL
- Redis
- Docker (Optional)
- Docker Compose (Optional)
- Postman (Optional)
- Clone the repository.
$ git clone https://github.com/rgxcp/wikalpa.git
- Add the following lines to your
.bashrc
,.zshrc
, or any others shell configuration file for your machine setup.export RAILS_MASTER_KEY= export JWT_KEY=
- Install the dependencies.
$ bundle install
- Setup the database.
$ bin/rails db:setup
- Make sure you have setup the project.
- Run the test.
$ bundle exec rspec
- Make sure you have setup the project.
- Run the server.
$ bin/rails s
- Run Sidekiq.
$ bundle exec sidekiq
- Download the
docker-compose.yml
file and place it somewhere else. - Configure the required environment variables in it.
- RAILS_MASTER_KEY= - JWT_KEY= - WIKALPA_DATABASE_PASSWORD=
- Run the container.
$ sudo docker-compose up -d
- Setup the database.
$ sudo docker exec wikalpa_api bin/rails db:setup
- Run Sidekiq.
$ sudo docker exec wikalpa_api bundle exec sidekiq