Skip to content

shaiadul/CRUD-Mastery

Repository files navigation

BanglaBazar.com

This backend project serves as a centralized hub for managing and processing data.

Prerequisites

Before you begin, ensure that you have the following installed on your machine:

  • Node.js: Download and install Node.js.
    npm install node
  • TypeScript: Install TypeScript globally using the following command:
    npm install -g typescript
    
    

How To Installing?

Clone the repository:

git clone https://github.com/shaiadul/CRUD-Mastery.git

Navigate to the project directory:

cd CRUD_Mastery

Install dependencies:

npm install

How To Use?

Development Mode:

To run the application in development mode with automatic transpilation and server restart:

npm run start:dev

This command uses ts-node-dev to watch for changes in the src directory, transpile TypeScript files, and restart the server.

Production Mode:

to build the project for production:

npm run build

This command uses the TypeScript compiler tsc to transpile the TypeScript code into JavaScript. The compiled code is output to the dist directory.

To start the application in production mode:

npm run start:prod

Code Linting

To lint the code using ESLint:

npm run lint

To automatically fix linting issues:

npm run lint:fix

Code Formatting

To format the code using Prettier:

npm run format

To automatically fix formatting issues:

npm run format:fix