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

https://github.com/ramirezpineda/backend-belibeli

An e-commerce project to sell products online.
https://github.com/ramirezpineda/backend-belibeli

ecommerce express node node-ecommerce nodejs prisma typescript vitest zod

Last synced: 10 months ago
JSON representation

An e-commerce project to sell products online.

Awesome Lists containing this project

README

          

Ecommerce BeliBeli (Backend)


Static Badge
Static Badge
Static Badge
Static Badge
Static Badge
Static Badge

## Description

An e-commerce project to sell products online.

## Previous requirements

**Node version >=20.12.0**

## Installation

1. Clone the repository

```bash
git clone https://github.com/RamirezPineda/backend-belibeli.git
```

2. Navigate to the application directory:

```bash
cd backend-belibeli
```
3. Install the project dependencies:

```bash
npm install
```

## Configuration

Rename the .env.example file to .env and set the environment variables

```bash
# before
|--src
|--tests
|--.env.example
...
...
...
|--vitest.config.ts

# after
|--src
|--tests
|--.env
...
...
...
|--vitest.config.ts
```
Run the database migration script

```bash
npm run db:migrate
```

## Running the app

```bash
# development
npm run dev

# production
npm run build
npm run start
```

## Test

```bash
# unit tests
npm run test

# test coverage
npm run test:coverage
```

## Linting

To run the linter you can execute:

```bash
npm run lint
```

And for trying to fix lint issues automatically, you can run:

```bash
npm run lint:fix
```