Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manosbatsis/fullstack-turborepo-countries
https://github.com/manosbatsis/fullstack-turborepo-countries
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/manosbatsis/fullstack-turborepo-countries
- Owner: manosbatsis
- Created: 2024-05-08T18:01:04.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-05-09T08:31:17.000Z (8 months ago)
- Last Synced: 2024-05-10T08:52:05.437Z (8 months ago)
- Language: TypeScript
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fullstack-turborepo-countries [![CI](https://github.com/manosbatsis/fullstack-turborepo-countries/actions/workflows/ci.yml/badge.svg)](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
```