Skip to content

Latest commit

 

History

History
90 lines (63 loc) · 2.37 KB

CONTRIBUTING.md

File metadata and controls

90 lines (63 loc) · 2.37 KB

brainbox-backend's Development Guidelines

Table of Contents


Requirements

Tools

  • Environment: Node.js v20.17.0
    • You can download it from here.
  • Package manager: pnpm
    • To install it, run npm i -g pnpm after installing Node.js.
  • Code editor: Visual Studio Code
    • You can download it from here.

Extensions

Commit Conventions

Format: <type>: <subject>

Conventions:

  • add: Add a new code what does not exist.
  • update: Update an existing code.
  • fix: Fix a bug, issue, or error, tool scan warning.
  • docs: Update or add documentation.
  • feat: Add a new feature. (Usually used in the PR title)
  • refactor: Refactor an existing code.
  • delete: Delete an existing code.

Examples:

  • add: add a new feature
  • update: update a function
  • fix: fix a bug
  • docs: update contributing guidelines
  • feat: add a new feature
  • refactor: refactor a function
  • delete: delete a function

Note: Please follow the conventions to keep the commit history clean and easy to read.

Environment Variables

Create a .env file there and add the following environment variables:

# Name Description Example
1 ENV Environment development or production

Development

  • Step 1: Clone the repository.

    git clone https://github.com/lzaycoe/brainbox-backend.git
  • Step 2: Install dependencies

    cd brainbox-backend
    pnpm install
  • Step 3: Create .env file and add the environment variables mentioned above.

  • Step 4: Run the development server.

    pnpm run start:dev