https://github.com/ngimdock/vision-car-server
The backend for and e-commerce website for selling car with nestjs.
https://github.com/ngimdock/vision-car-server
nestjs postgres prisma stripe typescript
Last synced: 10 months ago
JSON representation
The backend for and e-commerce website for selling car with nestjs.
- Host: GitHub
- URL: https://github.com/ngimdock/vision-car-server
- Owner: ngimdock
- Created: 2023-02-19T20:55:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-10T13:35:51.000Z (about 3 years ago)
- Last Synced: 2024-11-13T18:53:08.345Z (over 1 year ago)
- Topics: nestjs, postgres, prisma, stripe, typescript
- Language: TypeScript
- Homepage:
- Size: 2.37 MB
- Stars: 35
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vision-car-server
E-commerce website for selling car.
This project is the server part of the wole project. Tech stack used: `nestjs`, `postgresql`, `prisma` and `redis`
# Steps to run the application
After inserting the environment variables presented in the `.env.example` file, follow these steps.
## Install dependences
```bash
yarn install
```
## Start all ressourses your server need to run the app
```bash
yarn resources:restart
```
This command will start `dev-db`, `redis` and `redis-commander` in the container.
## Deploy migrations in dev database
```bash
yarn prisma:dev:deploy
```
## Start the application
```bash
yarn start:dev
```
## View your deb database
```bash
yarn prisma:dev:studio
```
## View the openIA documentation
```bash
http://localhost:3333/swagger
```
# Run units test
```bash
yarn test
```
# Run end to end tests
## Start the test db
```bash
yarn db:test:restart
```
## Deploy migrations to the test db
```bash
yarn prisma:test:deploy
```
## Run your e2e tests
```bash
yarn test:e2e
```
## View your test database
```bash
yarn prisma:test:studio
```