Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jsinkx/vish-app-backend

Backend app to get university schedule via parse google docs sheets (with updates in interval time)
https://github.com/jsinkx/vish-app-backend

backend cors docker express google-docs-api mongoose nginx nodejs parser typescript vite-proxy

Last synced: 19 days ago
JSON representation

Backend app to get university schedule via parse google docs sheets (with updates in interval time)

Awesome Lists containing this project

README

        

# Vish backend app

---

## Stack

- Docker
- Nginx
- Vite
- Typescript
- Express
- MongoDB
- Google sheets api
- Swagger
- Github actions

## Config app

An example of the config is in `.env.example`, but to use it you need to create `.env`

Integration of the config from `.env` into javascript variables and all constants are in
`./src/shared/constants.ts`

## Production mode

#### Build

```bash
docker build --build-arg APP_WHITELIST_IPS_PROD="[\"PROD_DOMAIN\"]" \
--build-arg APP_VERSION=APP_VERSION \
--build-arg VITE_BACKEND_PORT=PORT \
--build-arg API_GETAWAY=/api \
--build-arg DB_URL="DB_URL" \
--build-arg UPDATE_UNIVERSITY_SCHEDULE_INTERVAL_IN_MS=TIME_MS \
--build-arg GOOGLE_SHEETS_SCHEDULE_TABLE_ID=TABLE_ID \
--build-arg START_COUNT_WEEKS_FROM="01.09.2024" \
-t vish-backend .
```

#### Run

```bash
docker run -p GLOBAL_PORT:GLOBAL_PORT --restart=unless-stopped vish-backend
```

## Development mode

Run express app `pnpm run dev:express`

Run vite proxy server `pnpm run dev:vite`

#### Run backend app with proxy host for local network

```bash
pnpm run dev
```