Setup
Esta página aún no está disponible en tu idioma.
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 database
You can use any database including PostgreSQL, SQLite, Redis, MongoDB, and Firestore.
Before creating a new LaunchFast project, make sure to have created a new database and have the environment variables ready. For example when using PostgreSQL, the connection string will look something like this:
-
Initialize a new LaunchFast project
First you need to clone the LaunchFast repository:
Next, we are going to install all the dependencies. Make sure you have installed npm before running the following command:
Now, we need to set up the environment variables. To do this, copy the
.env.example
file in the root of your project and rename it to.env
.Then open the
.env
file and set at least theDATABASE_TYPE
and the relevant database provider environment variables:Further, to initiate the relevant schema on the database provider, run the following:
The last step is to set the LaunchFast repository as the upstream origin for your project, so you can pull in updates in the future.
Run the following commands:
-
Set up your storage provider
Storage is necessary to upload and serve files like images for example for the avatars of users. LaunchFast supports all S3-compatible storage providers (AWS S3, Cloudflare R2, and Supabase Storage) and Firebase Storage.
-
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 localhost:3000 in your browser to see the your app.