update dev config
This commit is contained in:
Родитель
f6de97a47f
Коммит
2970101dec
18
README.md
18
README.md
|
@ -8,24 +8,16 @@ The CBO Suite is a case-management web application that enables CBOs and members
|
|||
|
||||
- NodeJS LTS Release
|
||||
- Yarn v1 global installation (`npm i -g yarn`)
|
||||
- docker-compose OR a MongoDB connection string defined in the environment variable `DB_CONNECTION_STRING`
|
||||
- docker-compose OR a MongoDB connection string defined in the environment variable `DB_CONNECTION_STRING`.
|
||||
|
||||
To begin developming the app locally:
|
||||
If you are using GitHub Codespaces with the provided devcontainer, these prerequisites are provided.
|
||||
|
||||
If `DB_CONNECTION_STRING` environment variable is defined:
|
||||
To start the application:
|
||||
|
||||
> yarn build:schema
|
||||
> yarn
|
||||
> yarn assets:
|
||||
> yarn start:
|
||||
|
||||
If using **docker-compose**
|
||||
|
||||
-- Shell 1 --
|
||||
> yarn build:schema
|
||||
> yarn start:api:local
|
||||
|
||||
-- Shell 2 --
|
||||
> yarn start:webapp
|
||||
|
||||
### Branch & Release Strategy
|
||||
|
||||
Environments & Mapped Branches:
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
"start:codegen": "graphql-codegen -w",
|
||||
"start:tsc:server": "tsc -b tsconfig.server.json -w --preserveWatchOutput",
|
||||
"start:tsc:web": "tsc -b tsconfig.web.json -w --preserveWatchOutput",
|
||||
"start": "run-p \"start:*\""
|
||||
"start": "run-p \"start:*\"",
|
||||
"assets": "yarn build:schema"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@essex/scripts": "^18.2.0",
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"origin": "http://localhost:3000",
|
||||
"api": {
|
||||
"url": "http://localhost:3030/graphql",
|
||||
"socketUrl": "ws://localhost:3030/graphql"
|
||||
},
|
||||
"features": {
|
||||
"devLogger": {
|
||||
"enabled": true
|
||||
},
|
||||
"devCallbacks": {
|
||||
"enabled": true
|
||||
},
|
||||
"redbox": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче