This commit is contained in:
Chris Trevino 2021-08-26 10:03:19 -07:00
Родитель c2f0cdb20e
Коммит 2d5050390b
2 изменённых файлов: 29 добавлений и 1 удалений

27
README.md Normal file
Просмотреть файл

@ -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",