Skip to content

Latest commit

 

History

History
133 lines (86 loc) · 2.29 KB

installation.md

File metadata and controls

133 lines (86 loc) · 2.29 KB

Installation

Prerequisites

Optional:

  • Ngrok
  • Terraform

Setup

  1. Clone the repo
git clone https://github.com/specfy/specfy.git
  1. Navigate to the project folder
cd specfy
  1. Install the required packages using pnpm.
nvm use
npm install
npm install -g turbo
  1. Create your .env files
cp .env.example .env
  1. Open the root .env file:
code /.env

Feel free to update COOKIE_SECRET and PASSWORD_SALT. See Secrets section

  1. Start Docker. This starts the required services like Postgres.
docker compose up -d
  1. Migrate the database
turbo run db:migrate
  1. Build
npm run build
  1. Launch the API
npm run api

Go to http://localhost:3000

  1. Launch the App
npm run app

Go to http://localhost:5173

  1. Optional: Seed the Database

Caution

You need the API to be running to seed

turbo run db:seed
  1. Optional: Launch the mail builder
npm run emails

Go to http://localhost:3001

  1. ✅ Done.

Secrets

To run this project, locally or in production, you will need a few secrets.

Creating the GitHub App

You will need a GitHub app to allow oauth.

Configuration:

Permissions (read-only):

  • Repository: Commit Statuses, Contents, Deployments, Environments, Metadata
  • Org: Members
  • Account: Email addresses

Subscribe to events:

  • Meta, Member, Membership, Organization, Public, Push, Repository, Team, Team add

Others Secrets