add developing instructions
This commit is contained in:
Родитель
c2f0cdb20e
Коммит
2d5050390b
|
@ -0,0 +1,27 @@
|
|||
# Community-Based Organization Operations Suite (CBO Suite)
|
||||
|
||||
The CBO Suite is a case-management web application that enables CBOs and members of CBOs to work together more effectively.
|
||||
|
||||
## Developing
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- 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`
|
||||
|
||||
To begin developming the app locally:
|
||||
|
||||
If `DB_CONNECTION_STRING` environment variable is defined:
|
||||
|
||||
> yarn build:schema
|
||||
> yarn start:
|
||||
|
||||
If using **docker-compose**
|
||||
|
||||
-- Shell 1 --
|
||||
> yarn build:schema
|
||||
> yarn start:api:local
|
||||
|
||||
-- Shell 2 --
|
||||
> yarn start:webapp
|
|
@ -6,8 +6,9 @@
|
|||
"scripts": {
|
||||
"clean": "essex clean dist/ deploy.zip",
|
||||
"start": "nodemon src/index.ts",
|
||||
"start_local": "docker-compose up -d && yarn start",
|
||||
"start:api": "yarn start",
|
||||
"start:local": "docker-compose up -d && nodemon src/index.ts",
|
||||
"start:api:local": "yarn start_local",
|
||||
"build": "run-s clean compile write_deploy_package",
|
||||
"build:api": "yarn build",
|
||||
"archive": "run-s install_deploy_deps create_deploy_archive",
|
||||
|
|
Загрузка…
Ссылка в новой задаче