backend/
│── src/
│ ├── auth/ # Authentication module
│── providers/
│ ├── common/ # Shared utilities & helpers
│ ├── config/ # Environment variables & configs
│ ├── main.ts # Application entry point
│── test/ # Unit & integration tests
│── .env # Environment variables
│── nest-cli.json # NestJS configuration
│── package.json # Dependencies & scripts
Naming Convention
- All folders/files should begin in lowercase and describe its role (or snake case where applicaple)
- Name your folders as short as possible
- Name your files as descriptive as possible
Ensure you have the following installed:
- Node.js (v18+)
- PostgreSQL
- Clone the Repository
git clone <repo-url> cd backend
- Install Dependencies
npm install
- Set Up Environment Variables
Create a
.envfile and edit the database variables according to your PostgreSQL configuration. Do not edit.examplefor any reason. - Run Database Migrations
npm run typeorm migration:run
- Start the Server
npm run start:dev
API documentation will be available via Swagger at:
http://localhost:3000/api
- Fork the repository
- Create a feature branch (
git checkout -b feature-name) - Commit your changes (
git commit -m 'Add feature X') - Push to the branch (
git push origin feature-name) - Open a Pull Request