- Node.js
- Package Manager (pnpm or npm or yarn)
- Git
- Database (PostgreSQL, MySQL or You can use Supabase)
- GitHub OAuth Credentials (Client ID and Client Secret) Generate GitHub Secrets
-
Go to the GitHub Releases and Click on the
Fork
button. -
Clone the repository:
git clone https://github.com/YOUR_USERNAME/liny.git cd liny
-
Install the dependencies:
pnpm install
Alternatively, you can use
npm
oryarn
to install the dependencies. -
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.
Required Fields | Description |
---|---|
DATABASE_URL |
You can use local database or Supabase |
NEXTAUTH_SECRET |
(You can use any random string for this) |
NEXTAUTH_URL |
(You can use http://localhost:3000 for this) |
NEXT_PUBLIC_APP_URL |
(You can use http://localhost:3000 for this) |
GITHUB_CLIENT_ID |
Required to use GitHub OAuth |
GITHUB_CLIENT_SECRET |
Required to use GitHub OAuth |
(If you're using Supabase, please refer to the Supabase Setup Guide and come back. Otherwise, you can use any other database supported by Prisma [MySQL, PostgreSQL, etc.].)
Refer to Generate a GitHub Secret to generate the
GITHUB_CLIENT_ID
andGITHUB_CLIENT_SECRET
.
-
If you're self-hosting, set
SELFHOSTED
totrue
in the.env
file to block other users from creating projects in your instance. (Default istrue
) -
Run
npx prisma db push
to create the tables. -
Run
pnpm run dev
to start the development server.