About
A RESTful API built with ExpressJS and TypeScript for CRUD operation.
This is the backend application server for EcoSense Indonesia.
Run the Server Locally
- Clone the repository.
- Install the dependencies using
npm install
. - Run
cp .env.example .env
to create an environment variable file. - Fill the environment variables in
.env
file. - Run the server using
npm run start:dev
. - The server will be running on
http://localhost:3001
. - To stop the server, press
Ctrl + C
in your terminal.
Technologies
Dependencies
Production
@google-cloud/secret-manager
@google-cloud/storage
cors
dotenv
express
firebase-admin
multer
pg
Development
jest
supertest
ts-jest
typescript
Google Cloud Platform Infrastructure
Production
- Cloud Build
- Region:
us-central1
- Region:
- Google Container Registry (GCR)
- Region:
us-central1
- Region:
- Google App Engine
- Service:
default
- Service URL: https://ecosense-bangkit.uc.r.appspot.com/
- Service:
Development
- Cloud Build
- Region:
us-central1
- Region:
- Google Container Registry (GCR)
- Region:
us-central1
- Region:
- Google App Engine
- Service:
devapi
- Service URL: https://devapi-dot-ecosense-bangkit.uc.r.appspot.com/
- Service:
Peripherals
- Google Cloud Storage
- Bucket for Campaign Posters:
ecosense-campaign-posters
- Bucket for Task Completion Proof:
ecosense-task-proofs
- Bucket for Campaign Posters:
CI/CD Workflows (Production & Development)
- Push to GitHub Repository
EcoSenseID/EcoSense-API
- Wait until the GitHub Actions workflow run is done.
2023 © EcoSense Indonesia.