Skip to content

Latest commit

Β 

History

History
66 lines (57 loc) Β· 1.67 KB

File metadata and controls

66 lines (57 loc) Β· 1.67 KB

πŸ“‚ Project Structure

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

  1. All folders/files should begin in lowercase and describe its role (or snake case where applicaple)
  2. Name your folders as short as possible
  3. Name your files as descriptive as possible

πŸ› οΈ Setup & Installation

Prerequisites

Ensure you have the following installed:

  • Node.js (v18+)
  • PostgreSQL

Installation Steps

  1. Clone the Repository
    git clone <repo-url>
    cd backend
  2. Install Dependencies
    npm install
  3. Set Up Environment Variables Create a .env file and edit the database variables according to your PostgreSQL configuration. Do not edit .example for any reason.
  4. Run Database Migrations
    npm run typeorm migration:run
  5. Start the Server
    npm run start:dev

πŸ“Œ API Documentation

API documentation will be available via Swagger at:

http://localhost:3000/api

βœ… Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature-name)
  3. Commit your changes (git commit -m 'Add feature X')
  4. Push to the branch (git push origin feature-name)
  5. Open a Pull Request