@dhealthdapps/backend
v0.6.2
Published
dHealth ELEVATE API
Downloads
6
Readme
@dhealthdapps/backend
dHealth dApps Backend with NestJS for dHealth Network.
NOTE: The author(s) and contributor(s) of this package cannot be held responsible for any loss of money or for any malintentioned usage forms of this package. Please use this package with caution.
Install notes
First make sure to setup your environment by copying the .env-sample
file into a production equivalent .env
file.
cp runtime/backend/.env-sample runtime/backend/.env
This software can be installed and deployed using lerna. Following commands are available:
# install all dependencies
lerna bootstrap
# build the vue software
lerna run build --stream --scope @dhealthdapps/backend
# test the vue software
lerna run test --stream --scope @dhealthdapps/backend
# serve/deploy the vue software
lerna run serve --stream --scope @dhealthdapps/backend
Database management
# show the status of database migrations
lerna run db:migration:show --stream --scope @dhealthdapps/backend
# create a new database migration (please rename afterwards)
lerna run db:migration:create --stream --scope @dhealthdapps/backend
# run all pending database migrations
lerna run db:migration:up --stream --scope @dhealthdapps/backend
# undo the latest migration run
lerna run db:migration:down --stream --scope @dhealthdapps/backend
# undo all the migration previously run
lerna run db:migration:reset --stream --scope @dhealthdapps/backend
Getting help
Use the following available resources to get help:
- Framework Documentation
- dHealth Documentation
- Join the community on Discord
- If you found a bug, open a new issue
Contributing
Contributions are welcome and appreciated. Check CONTRIBUTING for information on how to contribute.
License
Copyright 2022-present dHealth Network, All rights reserved.
Licensed under the LGPL v3.0