Local Development on Mana
homu
Get a running start with mana!
Table of Contents
Initial Setup
- Fork the mana/core repo
- On Github, Click [Code] and Open with Github Desktop
- In VS Code, copy `.env.local` as `.env` and fill in the env variables.
- Start local development with `yarn; yarn dev`.
Deployment
- In VS Code, test the build locally first with `yarn; yarn build; yarn start`.
- Go to your Github repo > Settings tab > Secret and Variables > Actions.
- Fill in `FLY_API_TOKEN` from https://fly.io/user/personal_access_tokens.
- Fill in `APP_NAME` for your mana app.
- In VS Code, login to Fly `fly auth login`
- In VS Code, type in Fly `fly launch`
- Copy your local secrets to Fly by typing in `cat .env | fly secrets import`
- Go to your Github repo > Actions tab and enable Workflows, click [I understand my workflows, go ahead and enable them]
- We only want [Fly Deploy - App] workflow enabled.
- Disable the remaining workflows by clicking [...] and click Disable Workflow.