https://github.com/tarektouati/nextjs-todo
https://github.com/tarektouati/nextjs-todo
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tarektouati/nextjs-todo
- Owner: Tarektouati
- Created: 2024-02-18T19:19:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-19T09:08:43.000Z (over 1 year ago)
- Last Synced: 2025-02-08T12:47:01.479Z (4 months ago)
- Language: TypeScript
- Size: 151 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testing todos
## Getting Started
***NB:tools used in the instructions are opinionated, here i've chosen to use pnpm/rancher/... feel free to choose the tools that you prefer (yarn, docker, podman)***
First, Make sure to install npm dependencies,(mine is [pnpm](https://pnpm.io/fr/))
```bash
pnpm install
```Second, start a [PgSQL database container](https://hub.docker.com/_/postgres) by running the following command:
```bash
docker-compose up -d
```
Setup the database by running theses command```bash
npx prisma generate
npx prisma migrate dev
```your almost good to go, run your NextJS dev server :
```bash
pnpm dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Tests:
We use Vitest as test runner, it's configuration is available at `vitest.config.ts`
To execute test, it simple just :
```bash
pnpm test
```For e2e test just run :
```bash
pnpm e2e```
***
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).