A complete full-stack development template to kickstart your hackathon projects.
- React - A JavaScript library for building user interfaces
- Tailwind CSS - A utility-first CSS framework for rapid UI development
- shadcn/ui - Beautifully designed components built with Radix UI and Tailwind CSS
- Express - Fast, unopinionated, minimalist web framework for Node.js
- Better Auth - Advanced authentication solution for your applications
- Prisma - Next-generation ORM for Node.js and TypeScript
- PostgreSQL - Powerful, open source object-relational database system
- Node.js (v14+ recommended)
- Yarn package manager
- PostgreSQL database
- Clone the repository:
git clone https://github.com/Prasanth-S7/hackathon-starter.git
cd hackathon-starter- Set up the frontend:
cd client
yarn- Set up the backend:
cd ../server
yarn-
Configure environment variables:
Create a
.envfile in thebackenddirectory with the following variables:PORT=3000 BETTER_AUTH_SECRET= BETTER_AUTH_URL=http://localhost:3000 DATABASE_URL= GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET=Create a
.envfile in theclientdirectory:VITE_GOOGLE_CLIENT_ID= VITE_GOOGLE_CLIENT_SECRET= BETTER_AUTH_SECRET= VITE_BASE_URL=http://localhost:5173 -
Set up the database:
cd server
npx prisma generate client
npx prisma migrate devcd backend
yarn devcd client
yarn devThe frontend will be available at http://localhost:5173 and the backend API at http://localhost:3000.
- User authentication (signup, login, password reset)
- User authorization with role-based access control
- RESTful API structure
- Database migrations with Prisma
- Modern UI components with shadcn/ui and Tailwind CSS
- Responsive design
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.