A modern blog application built with Node.js, Express, and TypeScript, featuring a RESTful API architecture.
- RESTful API endpoints
- MongoDB database integration
- TypeScript support
- Express.js framework
- Modern development setup with ESLint and Prettier
- Node.js (v14 or higher)
- MongoDB
- npm or yarn
- Clone the repository:
git clone [your-repository-url]
cd blog
- Install dependencies:
npm install
- Set up your environment variables:
- Copy
config.env.example
toconfig.env
- Update the variables with your configuration
npm run dev
npm run typ-dev
├── controllers/ # Route controllers
├── models/ # Database models
├── routes/ # API routes
├── services/ # Business logic
├── src/ # Source files
├── server.ts # Server entry point (TypeScript)
├── server.js # Server entry point (JavaScript)
└── config.env # Environment configuration
- Runtime: Node.js
- Framework: Express.js
- Language: TypeScript/JavaScript
- Database: MongoDB
- Development Tools:
- ESLint for linting
- Prettier for code formatting
- Nodemon for development
- Morgan for HTTP request logging