2019-06-20 20:48:19 +02:00
|
|
|
# README
|
|
|
|
|
|
2020-05-18 16:52:28 +02:00
|
|
|
## First-time setup
|
|
|
|
|
|
|
|
|
|
Install dependencies with `bundle install` and `yarn --cwd client install` (or enter client directory and execute `yarn install`)
|
|
|
|
|
|
|
|
|
|
Build docker image with `docker build -t roraccounting .`
|
2020-05-18 11:35:34 +02:00
|
|
|
## Running
|
2020-05-18 16:52:28 +02:00
|
|
|
Start docker container with Postgres DB (if not already running) : `yarn run dev-db` or
|
|
|
|
|
`docker run --name gangstadb -d -p 5432:5432 -e POSTGRES_PASSWORD=docker -e POSTGRES_DB=roraccounting_development roraccounting`
|
|
|
|
|
|
|
|
|
|
Start backend server : `yarn run server` or `PORT=3001 bundle exec rails s`
|
|
|
|
|
|
|
|
|
|
Start frontend with : `yarn run client` or `PORT=3000 yarn --cwd client start`
|