update readme; add helper yarn commands
This commit is contained in:
14
README.md
14
README.md
@@ -1,6 +1,14 @@
|
|||||||
# README
|
# README
|
||||||
|
|
||||||
|
## 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 .`
|
||||||
## Running
|
## Running
|
||||||
docker run --name gangstadb -d -p 5432:5432 -e POSTGRES_PASSWORD=docker roraccounting
|
Start docker container with Postgres DB (if not already running) : `yarn run dev-db` or
|
||||||
PORT=3001 bundle exec rails s
|
`docker run --name gangstadb -d -p 5432:5432 -e POSTGRES_PASSWORD=docker -e POSTGRES_DB=roraccounting_development roraccounting`
|
||||||
PORT=3000 yarn --cwd client start
|
|
||||||
|
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`
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react-router-dom": "^5.0.1"
|
"react-router-dom": "^5.0.1"
|
||||||
|
},
|
||||||
|
|
||||||
|
"scripts": {
|
||||||
|
"dev-db": "docker run --name gangstadb -d -p 5432:5432 -e POSTGRES_PASSWORD=docker -e POSTGRES_DB=roraccounting_development roraccounting",
|
||||||
|
"server": "PORT=3001 bundle exec rails s",
|
||||||
|
"client": "PORT=3000 yarn --cwd client start"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user