This repository contains a setup for a taskmanagement app using Vite for the React frontend, Node.js with Express for the backend, and PostgreSQL for the database.
- Node.js (>= 18.x)
- Yarn and npm
- Clone the repository:
git clone https://github.com/your-username/your-repo.git
cd your-repo- Install dependencies for the client and server:
cd server
npm install
cd ../client
npm install - Set variable in .env file of server:
PORT = "8099"
DB_HOST="hostname"
DB_PORT="5432"
DB_USERNAME="usernmae"
DB_PASSWORD="userpassword"
DB_DATABASE="dbname"
NODE_ENV="production"
JWT_SECRET ="jwtsected"
GOOGLE_CLIENT_ID = "googleclientID"
GOOGLE_CLIENT_SECRET = "googleClientSecretCode"
CLIENT_URL = "http://localhost:3000"
GOOGLE_CALLBACK_URL = "/auth/google/callback"
SESSION_SECRET="sessionSecret"
OPENAI_API_KEY="openaiapikey"
OPENAI_MODEL="modelname"
OPENAI_SYSTEM_TONE="model-tone"
- Set variable in .env file of client:
NEXT_PUBLIC_API_URL = "http://localhost:8099"
- Running Server:
cd server
npm run migration
npm run dev
- Running Client:
cd ../client
npm run dev