Start a new Project
Setup
- Download Flint or clone the repository with
git clone https://github.com/mnlcpc/flint.git - Unzip the repository and open the folder in your code editor
- Run
npm installto install the dependencies - Rename the file
.example.env.localto.env.local - Open the
.env.localfile and fill in your project details. In the file you'll find inline comments to help you with that. To get some of the values you'll need to perform the next steps. - Launch Docker Desktop then run
supabase start. This starts the local database on docker and applies migrations.- Take notes of your local ANON_KEY and SERVICE_ROLE_KEY. Add them to the
.env.localfile as TEST values.
- Take notes of your local ANON_KEY and SERVICE_ROLE_KEY. Add them to the
- Populate the
.env.localfile with the correct development ("TEST") and production ("LIVE") values.- Stripe : get the API keys from the Stripe dashboard
- Run script
npm run stripe:listenand copy the webhook signing secret for local development - Supabase : Take the values for production from the supabase project settings, and the values for local development are the ones you got when you launched supabase start
- Posthog : get the API keys from the Postohog dashboard
- Resend : get the API keys from the Resend dashboard
- Configure the integration Resend / Supabase so that you can send emails with no limits and from your domain.
- Run
npm run supabase:linkto link your local environment to your Supabase project - Push your project on Github
- Go on Vercel and link your Github Project, so that Vercel will take care of deployment.
- Copy local env values to your your project settings on Vercel
Now everthing is setup, you can run npm run dev to start your local development server.