Get started with backend development using Node.js and TypeScript. This starter template includes authentication, user, and admin APIs to kickstart your project.
- Node
- Typescript
- Express
- Mongoose
- Redis
- Eslint
- Prettier
Before you begin, ensure you have met the following requirements:
- Node.js (18.x or higher) installed on your system.
- Redis (6.x or higher) installed and running on your system.
- Clone or download this repository to your local machine.
- A code editor of your choice, like Visual Studio Code.
-
Clone the repository to your local machine:
git clone https://github.com/Lekejosh/my-node-typescript-template.git cd my-node-typescript-template
-
Install the project dependencies using npm:
npm install
-
Create a
.env
file in the project root and add the following environment variables example in the .env.sample file -
Start the development server:
npm run watch (run this in one terminal in the project directory)
npm run dev (this in another terminal in the project directory)
- Authentication: Secure user registration, login, and JWT token generation.
- User: Manage user profiles, update information, and view user details.
- Admin: Admin-only endpoints for managing the application.
You can find a Postman collection for testing the APIs in the postman
directory within this repository. Import the collection into Postman for easy API testing.
Contributions are welcome! Feel free to submit issues, create pull requests, or open discussions.
This project is licensed under the MIT License. See the LICENSE file for details.
Happy Coding! 🚀