- Typescript
- Java
- Spring Boot
- PostgreSQL
- ReactJS
- NextJS
1. Clone the repo
2. Frontend setup:
You have to create an .env file at the ./frontend
directory, with the following variables:
GOOGLE_CLIENT_ID=YOUR_CLIENT_ID_IF_YOU_WANT_GOOGLE_LOGIN
GOOGLE_CLIENT_SECRET=YOUR_CLIENT_SECRET_IF_YOU_WANT_GOOGLE_LOGIN
NEXTAUTH_URL=http://localhost:3000 //leave it default
then:
cd frontend && yarn && yarn dev
3. Backend setup:
Required Tools:
Java 17 and PostgreSQL 13 or higher
You have to create an .env file at the ./backend/src/main/resources
directory, with the following variables:
TOKEN_SECRET=YOUR_RANDOM_TOKEN_SECRET
TOKEN_EXPIRATION_MSEC=00000
REFRESH_TOKEN_EXPIRATION_MSEC=00000
OAUTH_KEY=OAUTH_KEY SECURE_KEY=YOUR_SECURE_VALUE
POSTGRESQL_CONNECTION=YOUR_POSTGRES_CONNECTION
POSTGRESQL_USERNAME=postgres_username
POSTGRESQL_PASSWORD=postgres_password
MAIL_SENDER_MAIL_USERNAME=cool_email
MAIL_SENDER_MAIL_PASSWORD=cool_password_email
BASE_EMAIL_VERIFICATION_FRONTEND_URL=http://localhost:3000/email-verification
BASE_PASSWORD_CHANGE_FRONTEND_URL=http://localhost:3000/password-change