Skip to content

citahub/cyton-dapps

Repository files navigation

CITA Dapps

Docker

We recommend that you use Docker 🐳 if you just want to run this project.

Remember to run rails secret to generate secret key and write it to .env.local(read .env for more info).

⚠️ IMPORTANT: your database data will save at docker/data

App will run at http://localhost:8080.

$ make setup # run this when you first run this app
$ make up # this command will run docker daemon.
$ make update # when you update the app.

Refer to Makefile for more info.

Initialize Project

touch .env.local # Configure you database username, password, etc.

bundle

yarn install

rails db:create

rails db:migrate

rails db:seed

Run Tests

rails test

Run Project

rails s
rails s -b 0.0.0.0
./bin/webpack-dev-server

Deploy

mina dev deploy
mina dev puma:start