Development
Get started with the code and develop your SaaS.
Set up the environment variables
You can read more about environment variables here. set at least the DATABASE_URL
Configure the database
You will need to scaffold the database using the schema defined in packages/database/prisma/schema.prisma
:
For more details on the default Prisma configuration (using Neon), refer to the Database Configuration Guide.
The apps/api
and apps/app
application use the database as an example, if you need to build one of these applications then make sure that this step is completed successfully. Otherwise you can ignore this step for now
Start your development server
Now your app should be ready to go. To start the local development server, navigate into your project root folder and run the following command.
Open the localhost URLs with the relevant ports listed above to see the app, e.g. 🎉
- http://localhost:3000/ — The Main app.
- http://localhost:3001/ — The LandingPage website.
- http://localhost:3002/ — The API.
- http://localhost:3004/ — The Storybook.
If you only want to launch a particular app, you can use the following command:
pnpm --filter app dev
- Launch the Main apppnpm --filter web dev
- Launch the Landing page websitepnpm --filter api dev
- Launch the APIpnpm --filter storybook dev
- Launch the Storybookpnpm --filter email dev
- Launch the Email previewspnpm --filter database dev
- Launch the Prisma Studio