Zicket's backend built with Express, TypeScript, Mongoose, and Jest for testing.
Before you begin, make sure you have the following installed:
- Node.js (v18+ recommended): Download
- npm (comes with Node.js) or Yarn
- MongoDB (local or cloud): Install MongoDB
src/
├── config/ # Environment config and DB setup
├── controllers/ # Request handlers
├── models/ # Mongoose schemas
├── routes/ # Express route definitions
├── services/ # Business logic layer
├── tests/ # Jest test files
├── utils/ # Utility functions
└── app.ts # Application grade
└── server.ts # Application entry point
# 1. Fork the repository
Click fork
# 2. Clone it
git clone https://github.com/username/zicket-backend.git
cd zicket-backend
# 3. Install dependencies
npm installCreate a .env file in the root directory using this command: cp .env.example .env
Make sure you never commit
.envto version control.
🚀 Running the App
Development mode (with hot reloading):
npm run dev
Production mode:
npm run build
npm start
🧪 Running Tests
npm run test
Tests are written using Jest and live inside the src/tests directory.
Contributions are welcome! 🎉
Fork this repo
Create your feature branch: git checkout -b feature/your-feature
Commit your changes: git commit -am 'Add new feature'
Push to the branch: git push origin feature/your-feature
Open a pull request 🚀
Please follow the code style and add tests where applicable.
📬 Contact
Have questions or suggestions? Feel free to reach out or open an issue.