Ensure you have the following installed:
- Node.js (v16 or higher)
- PostgreSQL
- pnpm (package manager)
-
Clone the repository:
git clone https://github.com/rohitxdd/go-progress.git cd go-progress
-
Install the dependencies using
pnpm
:pnpm install
-
Create a
.env.local
file in the root directory and add your environment variables:AUTH_SECRET= GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= POSTGRES_URL= ADMIN_MAIL=
-
Run database migrations with
drizzle-kit
:pnpm drizzle-kit migrate
-
Start the development server:
pnpm dev
The application will be running at http://localhost:3000.
To set up Google OAuth:
- Go to the Google Cloud Console.
- Create a new project.
- Enable the Google OAuth API.
- Create OAuth 2.0 credentials and add your redirect URL (e.g., http://localhost:3000/api/auth/callback/google).
- Copy the Client ID and Client Secret to your .env file.
This project is licensed under the MIT License. See the LICENSE
file for more information.