https://github.com/manosbatsis/fullstack-turborepo-countries
https://github.com/manosbatsis/fullstack-turborepo-countries
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/manosbatsis/fullstack-turborepo-countries
- Owner: manosbatsis
- Created: 2024-05-08T18:01:04.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-19T12:17:57.000Z (about 1 year ago)
- Last Synced: 2024-12-28T05:21:52.863Z (10 months ago)
- Language: TypeScript
- Size: 422 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fullstack-turborepo-countries [](https://github.com/manosbatsis/fullstack-turborepo-countries/actions/workflows/ci.yml)
WIP for trying out [turborepo](https://turbo.build/), [prisma](https://www.prisma.io/) and [react native](https://reactnative.dev).
## Prerequisites
- Docker
- Docker Compose
- Node v20
- NPM v10
## Installation
```bash
$ npm install
```
## Running the app
Create an environment file or copy the sample docker one:
```bash
cp .env.example .env
```
Maybe launch a postgres with docker compose...
```bash
docker-compose up
```
Init and seed the DB
```bash
npx prisma migrate dev && npx prisma db seed
```
Launch for development
```bash
npm run start
```
Watch mode
```bash
npm run start:dev
```
Production mode
```bash
npm run start:prod
```
## Test
Try out the Swagger UI at http://localhost:3000/api
Run unit tests
```bash
npm run test
```
Run e2e tests with [testcontainers](https://node.testcontainers.org/) for postgres
```bash
npm run test:e2e
```
Test coverage
```bash
npm run test:cov
```