Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Latest commit

History

History
34 lines (29 loc) 路 1.41 KB

contribution.md

File metadata and controls

34 lines (29 loc) 路 1.41 KB

Setup

Prerequisite

Before you can contribute to our project, you need to install the following below:

  • Node.js (LTS version)
  • PNPM - run corepack enable to install (Node.js >= 16.9.0)
  • Docker - Support on Window (including WSL), Linux, and MacOS

TypeScript is strongly recommended you learn because we mainly use this language for all of our services.

Steps

  1. Clone the sourcecode from github https://github.com/vectier/codern/.
  2. Run pnpm i to install the required dependencies.
  3. Add .env (the content same as .env.example) to the following folder:
    • /services/auth
    • /services/frontend
    • /services/gateway
    • /services/grading
    • /services/workspace
    • / (project root)
  4. Run docker compose up -d to setup development environments.
  5. Run pnpm db:generate to generate Prisma client for database connection.
  6. Run pnpm db:push to sync the Prisma schema to the database.
  7. Run pnpm dev to start everything up.
  8. Take your coffee 鈽曪笍

Development Environments