Optional:
- Ngrok
- Terraform
- Clone the repo
git clone https://github.com/specfy/specfy.git
- Navigate to the project folder
cd specfy
- Install the required packages using pnpm.
nvm use
npm install
npm install -g turbo
- Create your
.env
files
cp .env.example .env
- Open the root
.env
file:
code /.env
Feel free to update COOKIE_SECRET
and PASSWORD_SALT
. See Secrets section
- Start Docker. This starts the required services like Postgres.
docker compose up -d
- Migrate the database
turbo run db:migrate
- Build
npm run build
- Launch the API
npm run api
Go to http://localhost:3000
- Launch the App
npm run app
Go to http://localhost:5173
- Optional: Seed the Database
Caution
You need the API to be running to seed
turbo run db:seed
- Optional: Launch the mail builder
npm run emails
Go to http://localhost:3001
- ✅ Done.
To run this project, locally or in production, you will need a few secrets.
You will need a GitHub app to allow oauth.
Configuration:
- Callback: https://api.specfy.io/0/auth/github/cb
- Identifying >Request user authorization (OAuth) during installation
- Post installation > Redirect on update
- Webhook > Active
- Callback: https://api.specfy.io/0/github/webhooks
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