A robust, type-safe REST API built with Node.js and PostgreSQL for modern educational platforms.
- 🔒 Secure user authentication & authorization
- 🎯 Type-safe development with TypeScript
- 📦 Modern ORM with Sequelize
- 🚦 Comprehensive error handling
- 📚 Well-documented API endpoints
- 🔄 Real-time data synchronization
Make sure you have these installed:
- Node.js (v14+)
- PostgreSQL
- npm/yarn
-
Clone & Install
git clone https://github.com/yourusername/learnx.git cd learnx npm install -
Configure Environment Create
.envfile:DB_HOST=localhost DB_USER=your_username DB_PASSWORD=your_password DB_NAME=learnx_db
-
Launch
npm run dev
Visit http://localhost:3000 to see your API in action! 🎉
| Endpoint | Method | Description |
|---|---|---|
| /api/users | POST | Create user |
| /api/users | GET | List all users |
| /api/users/:id | GET | Get user details |
| /api/users/:id | PUT | Update user |
| /api/users/:id | DELETE | Delete user |
src/
├── app/
│ ├── controllers/ # Business logic
│ └── routes/ # API routes
├── config/ # Configuration files
├── models/ # Data models
└── app.ts # Application entry
npm run dev- Development modenpm start- Production modenpm run build- Build projectnpm test- Run tests
We love contributions! To contribute:
- Fork the repo
- Create your feature branch
- Commit changes
- Push to your branch
- Open a Pull Request
MIT License - feel free to use this project for your own learning and development!
Need help? Open an issue or contact our team at support@learnx.com
Built with ❤️ by the LearnX Team