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