Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 1 day ago
JSON representation

The backend for and e-commerce website for selling car with nestjs.

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
```