forked from cerc-io/snowballtools-base
nabarun
3d9aedeb7e
Part of [Service provider auctions for web deployments](https://www.notion.so/Service-provider-auctions-for-web-deployments-104a6b22d47280dbad51d28aa3a91d75) - Fix request Id being set to `null` while fetching build logs - Populate deployer LRNs dropdown with LRNs fetched from registry in configure delpoyment step ![image](/attachments/ff421bdf-6e0b-443e-9dc8-455bde481b4f) ![image](/attachments/87c9bce3-3743-4f4a-a997-a02a3504e61e) ![image](/attachments/dd442fe6-ad30-4723-a2bb-0723ad3eb3c9) ![image](/attachments/37f0da01-671f-4e3a-92e4-b34e25566a0d) Co-authored-by: IshaVenikar <ishavenikar7@gmail.com> Co-authored-by: Neeraj <neeraj.rtly@gmail.com> Reviewed-on: cerc-io/snowballtools-base#11 |
||
---|---|---|
.. | ||
environments | ||
src | ||
test | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.node-version | ||
.prettierignore | ||
.prettierrc.json | ||
package.json | ||
README.md | ||
tsconfig.json |
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