Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 928 Bytes

File metadata and controls

57 lines (38 loc) · 928 Bytes

chessrepeat

A website to train chess openings using spaced repetition.

Prerequisites

Setup

Backend

cd backend

Create a .env file:

MONGO_URI=mongodb://localhost:27017
MONGO_DB=chessrepeat

Install dependencies and run:

go mod download
go run .

The server starts at http://localhost:8080.

Frontend

cd frontend

Create a .env file:

VITE_GOOGLE_CLIENT_ID=<your Google OAuth client ID>

Install dependencies and run:

npm install
npm run dev

The dev server starts at http://localhost:5173.

Google OAuth

To enable login, create a Google OAuth 2.0 client ID at console.cloud.google.com and set VITE_GOOGLE_CLIENT_ID in frontend/.env.