- Docker 19.x
If you run the project locally, the followings are required.
- Ruby 3.0.0
- Bundler 2.1.x
- Node.js 14.15.1
- Yarn 1.22.x
- MySQL 8.0.x
After exporting project from iCode, initialize the project. First, create your development environment.
# docker env
docker-compose build
# local env
bundle install && yarn install
Run EDITOR="vi" bundle exec rails credentials:edit
and enter the following test tokens.
secret_key_base: "Please fill the generated key"
aws:
access_key_id: "Please fill access key after you get an AWS account"
secret_access_key: "Please fill secret key after you get an AWS account"
stripe:
secret_key: "sk_test_pfkiZJB75Yfc2SJLXb9QXxtO"
public_key: "pk_test_I3luumw3YWcV9oHxLFeM3eU1"
Run cp env.example .env
and open .env
file to edit environment variables.
Finally run the setup command.
# docker env
docker-compose run web ruby ./bin/initialize
# local env
ruby ./bin/initialize
It's all steps to initialize the project. When you finish initialization, please remove this ## Initialization
section from the readme.
Setup procedure of development environment.
Build docker containers
docker-compose build
Setup database
docker-compose run web bundle exec rake db:create db:migrate db:seed
Start the app
docker-compose up
Install dependencies
## Install gems
bundle install
## Install npm packages
yarn install --check-files
Start mysql and setup database
bin/rake db:create db:migrate db:seed
Start the app
## API server
bin/rails s
## Frontend dev server
bundle exec bin/webpack-dev-server
Start console
bin/rails c
Refer Notion Documents in Detail
This project was generated by iCode, run by iRuuza Inc.