Prerequisite You should have installed Node.js (version 20.0.0 or higher).
Create the project using the CLI
Choose an directory and create the project using the command and follow the instructions:npx launch-express@latest new my-project
Read more about the CLI for more information. Navigate to the project directory
Navigate to the project directory using the following command: Insert your api keys and secrets
Insert your api keys and secrets in the .env file.
Start the development server
Start the development server using the following command: Clone the Launch Express repository
Clone the repository using the following command:git clone `https://github.com/Launch-Express/StarterKit.git`
Navigate to the project directory
Navigate to the project directory using the following command: Remove the origin remote
Remove the origin remote using the following command: Install the dependencies
Install the dependencies using the following command: Create a `.env` file
Create a .env file using the following command: Insert your api keys and secrets
Insert your api keys and secrets in the .env file.
Start the development server
Start the development server using the following command: Now you can preview your changes at http://localhost:3000.
Configuration file
To make sure everything is set up correctly, please check the Configuration page for more information. Its necessary to set up most of the configurations before starting the server.
Environment Variables
Change the environment variables in the .env file with your own values. To generate an own BETTER_AUTH_SECRET, you can use the following command:
npx @better-auth/cli@latest secret
Admin Account
To create an admin account, you can use the following command:
You will be asked to insert the email and password for the admin account.
If you want to use social login, you have to create an account first and then update the account by using the following command:
You will be asked to insert the email for the admin account.
After that, you can login with the admin account and could access the admin page at http://localhost:3000/admin.