A modern project management and collaboration platform built with React, TypeScript, Node.js, and PostgreSQL.
synergysphere/
├── backend/ # Backend API server
│ ├── src/ # Source code
│ ├── prisma/ # Database schema and migrations
│ ├── .env.example # Example environment variables
│ └── package.json # Backend dependencies
│
├── synergysphere/ # Frontend React application
│ ├── src/ # Source code
│ ├── public/ # Static files
│ ├── .env # Frontend environment variables
│ └── package.json # Frontend dependencies
│
├── setup.sh # Setup script
└── README.md # This file
- Node.js (v16 or higher)
- npm (v7 or higher) or yarn
- PostgreSQL
-
Clone the repository
git clone <repository-url> cd project_SynergySphere
-
Run the setup script
chmod +x setup.sh ./setup.sh
This will:
- Install frontend and backend dependencies
- Set up environment variables
- Set up the database
- Generate Prisma client
-
Start the development servers
- Backend:
cd backend npm run dev - Frontend (in a new terminal):
cd synergysphere npm run dev
- Backend:
-
Access the application
- Frontend: http://localhost:3000
- Backend API: http://localhost:5000
- Prisma Studio (for database management): http://localhost:5555
-
Directory Structure:
src/controllers/- Request handlerssrc/routes/- API routessrc/middleware/- Express middlewaresrc/services/- Business logicsrc/types/- TypeScript type definitions
-
Available Scripts:
npm run dev- Start development server with hot-reloadnpm run build- Build for productionnpm start- Start production servernpm run prisma:generate- Generate Prisma clientnpm run prisma:migrate- Run database migrationsnpm run prisma:studio- Open Prisma Studio
-
Built with:
- React 18
- TypeScript
- Vite
- Tailwind CSS
- React Query
- React Router
-
Available Scripts:
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
- Set up a PostgreSQL database
- Configure environment variables in
.env - Build and start the server:
npm install npm run build npm start
- Update
VITE_API_BASE_URLin.envto point to your backend - Build for production:
npm install npm run build
- Deploy the
distfolder to your hosting service
MIT