Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/jsinkx/vish-app-backend
- Owner: jsinkx
- License: bsd-3-clause
- Created: 2024-09-08T23:56:44.000Z (4 months ago)
- Default Branch: develop
- Last Pushed: 2024-09-23T10:59:54.000Z (3 months ago)
- Last Synced: 2024-09-26T01:26:58.036Z (3 months ago)
- Topics: backend, cors, docker, express, google-docs-api, mongoose, nginx, nodejs, parser, typescript, vite-proxy
- Language: TypeScript
- Homepage:
- Size: 414 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```