This API allows you to add users and its hobbies
-
Clone the repository:
git clone <repository-url>
-
Install dependencies:
cd <folder-name> npm install
-
Add .env file:
Key example is in env.example file. Please add key and value accordingly
To start the server, you have two options:
-
Development Mode:
npm run dev
-
Production Mode:
npm run build npm start
The development mode will start the server using
ts-node-dev
, which enables hot-reloading for a better development experience. The production mode builds the TypeScript code into JavaScript and then starts the server using the compiled JavaScript files.The server will start running on
http://localhost:3000
.
The API is documented using Swagger UI. You can access the API documentation by navigating to http://localhost:3000/api-docs
in your browser.