It's a fullstack app that helps you organise your work and stay productive.
Everything is written in Typescript
- NextJS
- ChakraUI
- react-query
- axios
- formik
- hosts on Netlify
- NestJS
- Prisma
- PostgreSQL
- JWT Auth
- Passport
- hosts on Heroku
- Copy this repository.
- In frontend directory create .env.local
- In frontend/.env.local add following line
NEXT_PUBLIC_BACKEND_ENDPOINT='http://localhost:5000'
- In frontend/src/utils/axiosInstance.ts change following line
const axiosInstance = axios.create({
withCredentials: true,
baseURL: "/api",
});
to
const axiosInstance = axios.create({
withCredentials: true,
baseURL: process.env.NEXT_PUBLIC_BACKEND_ENDPOINT,
});
- Use backend/docker-compose.yml to create docker container with db.
- In backend folder create .evn file
- In backend/.env add following lines
DATABASE_URL=YOUR DB LINK
AT_SECRET=YOUR AT SECRET
RT_SECRET=YOUR RT SECRET
FRONTEND_ORIGIN="http://localhost:3000"
- Enter those commands in terminal:
cd backend
npm run start:dev
cd frontend
npm run dev
- You're good to go.