An e-commerce project to sell products online.
Node version >=20.12.0
- Clone the repository
git clone https://github.com/RamirezPineda/backend-belibeli.git
- Navigate to the application directory:
cd backend-belibeli
- Install the project dependencies:
npm install
Rename the .env.example file to .env and set the environment variables
# before
|--src
|--tests
|--.env.example
...
...
...
|--vitest.config.ts
# after
|--src
|--tests
|--.env
...
...
...
|--vitest.config.ts
Run the database migration script
npm run db:migrate
# development
npm run dev
# production
npm run build
npm run start
# unit tests
npm run test
# test coverage
npm run test:coverage
To run the linter you can execute:
npm run lint
And for trying to fix lint issues automatically, you can run:
npm run lint:fix