Keep on top of your team's to-dos.
- Docker Compose
- Node
npm install
- Create your environment variables file:
cp .env.example .env
- Start the PostgreSQL database using Docker:
npm run docker:up
- Push the database schema:
npm run db:push
First, run the development server:
npm run dev
Visit http://localhost:3000 in your browser to access the application.
npm run docker:up
- Start PostgreSQL databasenpm run docker:down
- Stop PostgreSQL databasenpm run db:generate
- Generate Prisma clientnpm run db:push
- Push schema changes to databasenpm run db:migrate
- Run database migrationsnpm run db:studio
- Open Prisma Studio (database GUI)npm run db:reset
- Reset database and run migrations
When changing the database schema in prisma/schema.prisma
, create and check in a new migration to apply the changes in production:
npm run db:migrate
To enable login with Google, follow these steps:
- Visit Google Cloud Console.
- Navigate to:
APIs & Services
→Credentials
→Create Credentials
→OAuth Client ID
- Choose Web Application as the application type.
- Add this to Authorized redirect URIs:
(Replace with your production URL if deploying)
http://localhost:3000/api/auth/callback/google
In your .env.local
file, add:
GOOGLE_CLIENT_ID=your-client-id
GOOGLE_CLIENT_SECRET=your-client-secret
To enable login with GitHub, follow these steps:
- Go to GitHub Developer Settings
- Click OAuth Apps → New OAuth App
- Fill in the application details:
- Application name: Gumboard (or your preferred name)
- Homepage URL:
http://localhost:3000
(for development) - Authorization callback URL:
http://localhost:3000/api/auth/callback/github
- Click Register application
- Copy the Client ID and Client Secret
In your .env.local
file, add:
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret