Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codebam/todo
A Todo list React SPA using Nest and PostgreSQL for the backend
https://github.com/codebam/todo
nestjs postgresql react
Last synced: about 18 hours ago
JSON representation
A Todo list React SPA using Nest and PostgreSQL for the backend
- Host: GitHub
- URL: https://github.com/codebam/todo
- Owner: codebam
- Created: 2021-09-09T21:23:33.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-11T20:54:05.000Z (over 3 years ago)
- Last Synced: 2024-11-15T06:21:08.023Z (2 months ago)
- Topics: nestjs, postgresql, react
- Language: TypeScript
- Homepage:
- Size: 1.76 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Todo
First copy `env-sample` to `.env` and edit it to your liking
Then build and start with
```
docker run --rm -w="/home/node/app" -v ./:/home/node/app:z node:current-alpine npm i && npm run build
docker-compose up -d
```If you're using podman, select docker.io (docker hub) as your source when
prompted.The react app is accessible on [127.0.0.1:4200](http://127.0.0.1:4200)
The nest api is accessible on [127.0.0.1:3333/api](http://127.0.0.1:3333/api)
The postgresql database is accessible on 127.0.0.1:5432
`nx serve` and therefore `npm run start` doesn't work for `todo` due to a bug
with custom webpack configurations in nx. If you want to use `nx serve` to
serve the app, `git checkout 458fe666a3b9d62520cb3db2eae4189581e4f9fc --
workspace.json` and comment out the `http` service inside the
`docker-compose.yml`. Just note that if you change the API URL, port, or prefix
from the defaults you won't be able to access it on the frontend.