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.gitcd CRUD_Masterynpm installTo run the application in development mode with automatic transpilation and server restart:
npm run start:devThis 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 buildThis 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:prodnpm run lintTo automatically fix linting issues:
npm run lint:fixTo format the code using Prettier:
npm run formatTo automatically fix formatting issues:
npm run format:fix