Follow these steps to set up and run the Liny project:
-
Clone the repository:
git clone https://github.com/mcnaveen/liny.git cd liny
-
Copy the example environment file and configure it:
cp .env.example .env
Open the
.env
file and fill in the required fields. You can leave the SMTP fields empty if not needed. -
If you're self-hosting, set
SELFHOSTED
totrue
in the.env
file to block other users from creating projects in your instance. (Default istrue
) -
Install dependencies using your preferred package manager. For pnpm:
pnpm install
Alternatively, you can use npm or yarn.
-
Set up the database:
If you're using Supabase, Please refer to the Supabase Setup Guide and come back.
npx prisma db push
-
Build the project:
pnpm build
-
Start the application:
pnpm start
Your Liny instance should now be up and running!
-
Fork the repository on GitHub to your own account.
-
Clone your forked repository to your local machine:
git clone https://github.com/YOUR_USERNAME/liny.git cd liny
-
Copy the example environment file and configure it:
cp .env.example .env
Open the
.env
file and fill in the required fields. You can leave the SMTP fields empty if not needed. -
If you're self-hosting, set
SELFHOSTED
totrue
in the.env
file to block other users from creating projects. -
Install dependencies using your preferred package manager. For pnpm:
pnpm install
Alternatively, you can use npm or yarn.
-
Set up the database:
npx prisma db push
-
Redeploy your application on Vercel:
- Go to your Vercel dashboard.
- Click on "New Project" and select your forked repository.
- Follow the prompts to deploy your application.
Your Liny instance should now be up and running on Vercel!
- This project uses Next.js and Prisma.
- Make sure you have Node.js and your chosen package manager (pnpm, npm, or yarn) installed on your system before starting the installation process.
- If you encounter any issues during installation, please check the project's documentation or open an issue on the GitHub repository.