Setup
This guide will walk you through setting up LaunchFast. We will go through the process of cloning the project, installing dependencies, setting up your database and running the local development server.
Prerequisites
Before you can get started, you will need to have the following installed on your machine.
Project setup
-
Create a new project with LaunchFast
Clone the LaunchFast repository:
Terminal window git clone https://github.com/LaunchFast-Boilerplates/launchfa.st-astroTerminal window git clone https://github.com/LaunchFast-Boilerplates/launchfa.st-sveltekitTerminal window git clone https://github.com/LaunchFast-Boilerplates/launchfa.st-nextjsNext, install all the dependencies. Make sure you have installed npm before running the following command:
Terminal window npm installNext, set up the environment variables. To do this, copy the
.env.example
file in the root of your project and rename it to.env
with the following:Terminal window cp .env.example .envFinally, set the LaunchFast repository as the upstream origin for your project, so you can pull in updates in the future via the following commands:
Terminal window rm -rf .gitgit init# Your writable remotegit remote add origin git@github.com:<user>/<repo>.git# LaunchFast template for pulling updates onlygit remote set upstream https://github.com/LaunchFast-Boilerplates/launchfa.st-astrogit add -Agit commit -m "Initial commit"# First push: establishes branch trackinggit push -u origin main # use 'master' if that’s your defaultTerminal window rm -rf .gitgit init# Your writable remotegit remote add origin git@github.com:<user>/<repo>.git# LaunchFast template for pulling updates onlygit remote set upstream https://github.com/LaunchFast-Boilerplates/launchfa.st-sveltekitgit add -Agit commit -m "Initial commit"# First push: establishes branch trackinggit push -u origin main # use 'master' if that’s your defaultTerminal window rm -rf .gitgit init# Your writable remotegit remote add origin git@github.com:<user>/<repo>.git# LaunchFast template for pulling updates onlygit remote set upstream https://github.com/LaunchFast-Boilerplates/launchfa.st-nextjsgit add -Agit commit -m "Initial commit"# First push: establishes branch trackinggit push -u origin main # use 'master' if that’s your default -
Set up your database provider
Open the
.env
file and update theDATABASE_TYPE
and the relevant database provider environment variable(s) per the following instructions:Finally, initiate the relevant schema on the database provider if only you are using Postgres or SQLite via the following command:
Terminal window npm run db:setup -
Set up your storage provider
Set up the storage environment variables to use the ability to upload and serve files (like images, videos, etc.) over pre-signed URLs. LaunchFast supports all S3-compatible storage providers (Amazon S3, Cloudflare R2, and Supabase Storage) and Firebase Storage.
Open the
.env
file and update theSTORAGE_PROVIDER
and the relevant storage provider environment variable(s) per the following instructions: -
Set up authentication
Open the
.env
file and update the authentication environment variables per the following instructions: -
Set up your email provider
Open the
.env
file and update the environment variables for the email provider that you intend to use per the following instructions: -
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.
Terminal window npm run devOpen localhost:3000 in your browser to see the your app.