This commit is contained in:
Chris Trevino 2021-12-06 20:32:28 +00:00 коммит произвёл GitHub
Родитель f6de97a47f
Коммит 2970101dec
3 изменённых файлов: 25 добавлений и 14 удалений

Просмотреть файл

@ -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
}
}
}