https://github.com/danitrod/todos
https://github.com/danitrod/todos
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danitrod/todos
- Owner: danitrod
- License: mit
- Created: 2021-07-19T06:23:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-20T12:50:50.000Z (almost 4 years ago)
- Last Synced: 2025-02-05T06:30:37.864Z (4 months ago)
- Language: TypeScript
- Size: 331 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Todos
## Running in dev mode
### For front-end
```bash
cd web
yarn
yarn dev
```### For back-end
```bash
cd server
docker compose up # Start db services for development
yarn
yarn watch # Watch for typescript file changes
```On another tab:
```bash
yarn dev
```## Running in production
```bash
yarn build
cd server
cp .env.example .env
```Set the env variables in `.env`. Then:
```bash
NODE_ENV=production yarn start
```Or, with Docker - set the env variables in the [Dockerfile](./Dockerfile) and run:
```bash
docker build -t todos .
docker run -p 8080:8080 todos
```