snowballtools-base/packages/backend
Nabarun Gogoi 2a35ec1cd5
All checks were successful
Lint / lint (20.x) (push) Successful in 4m59s
Check deployment status while creating project with single deployer (#15)
Part of [Service provider auctions for web deployments](https://www.notion.so/Service-provider-auctions-for-web-deployments-104a6b22d47280dbad51d28aa3a91d75)
- Use deployer API to get status of the deployments

Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>
Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Co-authored-by: Adw8 <adwaitgharpure@gmail.com>
Reviewed-on: #15
Co-authored-by: Nabarun Gogoi <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun Gogoi <nabarun@deepstacksoft.com>
2024-10-25 10:47:04 +00:00
..
environments Check deployment status while creating project with single deployer (#15) 2024-10-25 10:47:04 +00:00
src Check deployment status while creating project with single deployer (#15) 2024-10-25 10:47:04 +00:00
test List deployer LRNs in deployment configuration step (#11) 2024-10-23 15:36:19 +00:00
.eslintignore Backend package with db models (#43) 2024-01-16 13:40:14 +05:30
.eslintrc.json Merge branch 'main' of https://github.com/snowball-tools/snowballtools-base into andrehadianto/design-system-components 2024-02-22 12:45:17 +07:00
.gitignore ignore backend env file and readme 2024-02-26 17:33:44 -05:00
.node-version Switch from cra to vite 2024-04-11 21:48:58 -05:00
.prettierignore Backend package with db models (#43) 2024-01-16 13:40:14 +05:30
.prettierrc.json Backend package with db models (#43) 2024-01-16 13:40:14 +05:30
package.json Upgrade from laconic-sdk to registry-sdk (#1) 2024-10-16 08:43:51 +00:00
README.md Upgrade from laconic-sdk to registry-sdk (#1) 2024-10-16 08:43:51 +00:00
tsconfig.json Backend package with db models (#43) 2024-01-16 13:40:14 +05:30

backend

This backend is a node.js express.js apollo server project in a yarn workspace.

Getting Started

Install dependencies

In the root of the project, run:

yarn

Build backend

yarn build --ignore frontend

Environment variables

Local

Copy the environments/local.toml.example file to environments/local.toml:

cp environments/local.toml.example environments/local.toml

Staging environment variables

In the deployment repository, update staging staging/configmaps/config/prod.toml

Production environment variables

In the deployment repository, update production production/configmaps/config/prod.toml

Run development server

yarn start

Deployment

Clone the deployer repository:

git clone git@git.vdb.to:cerc-io/snowballtools-base-api-deployments.git

Staging

echo trigger >> .gitea/workflows/triggers/staging-deploy
git commit -a -m "Deploy v0.0.8"  # replace with version number
git push

Production

echo trigger >> .gitea/workflows/triggers/production-deploy
git commit -a -m "Deploy v0.0.8" # replace with version number
git push

Deployment status

Dumb for now

Update version number manually in routes/staging.ts