This backend project serves as a centralized hub for managing and processing data.
vercel deploy endpoint : https://banglabazar.vercel.app/api/users/
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
git clone https://github.com/shaiadul/CRUD-Mastery.git
cd CRUD_Mastery
npm install
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.
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
npm run lint
To automatically fix linting issues:
npm run lint:fix
To format the code using Prettier:
npm run format
To automatically fix formatting issues:
npm run format:fix