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.
- Host: GitHub
- URL: https://github.com/ramirezpineda/backend-belibeli
- Owner: RamirezPineda
- Created: 2024-04-22T12:30:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-09T21:38:39.000Z (over 1 year ago)
- Last Synced: 2025-03-28T20:46:45.589Z (11 months ago)
- Topics: ecommerce, express, node, node-ecommerce, nodejs, prisma, typescript, vitest, zod
- Language: TypeScript
- Homepage: https://backend-belibeli.onrender.com/api/v1
- Size: 269 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Ecommerce BeliBeli (Backend)
## 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
```