2022-12-01 17:58:08 +03:00
|
|
|
# twenty
|
|
|
|
|
|
|
|
Welcome to Twenty!
|
|
|
|
|
|
|
|
## Setup & Development
|
|
|
|
|
|
|
|
```
|
2022-12-28 23:19:12 +03:00
|
|
|
docker-compose -f infra/dev/docker-compose.yml up --build --force-recreate
|
2022-12-01 17:58:08 +03:00
|
|
|
```
|
|
|
|
|
2022-12-28 23:19:12 +03:00
|
|
|
Browse:
|
|
|
|
- FE/BE: localhost:3000
|
|
|
|
- Hasura: localhost:8080
|
2022-12-01 17:58:08 +03:00
|
|
|
|
|
|
|
## Tests
|
|
|
|
|
2022-12-28 23:19:12 +03:00
|
|
|
Ssh into the twenty-server container using:
|
|
|
|
- `docker ps` to get the container id
|
|
|
|
- `docker exec -it CONTAINER_ID sh`
|
|
|
|
|
2022-12-01 17:58:08 +03:00
|
|
|
### Frontend
|
|
|
|
|
|
|
|
```
|
2022-12-28 23:19:12 +03:00
|
|
|
cd front
|
2022-12-01 17:58:08 +03:00
|
|
|
npm run test
|
|
|
|
```
|
|
|
|
|
|
|
|
### Backend
|
|
|
|
|
|
|
|
```
|
2022-12-28 23:19:12 +03:00
|
|
|
cd server
|
2022-12-01 17:58:08 +03:00
|
|
|
npm run test
|
|
|
|
```
|
|
|
|
|
|
|
|
## Production
|
|
|
|
|
|
|
|
```
|
|
|
|
cd front && npm run build
|
|
|
|
cd ../server && npm run build
|
|
|
|
```
|