Skip to content

A complete full-stack development template to kickstart your hackathon projects.

Notifications You must be signed in to change notification settings

Prasanth-S7/hackathon-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Hackathon Starter Template

A complete full-stack development template to kickstart your hackathon projects.

Tech Stack

Frontend

  • 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

Backend

  • 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

Getting Started

Prerequisites

  • Node.js (v14+ recommended)
  • Yarn package manager
  • PostgreSQL database

Installation

  1. Clone the repository:
git clone https://github.com/Prasanth-S7/hackathon-starter.git
cd hackathon-starter
  1. Set up the frontend:
cd client
yarn
  1. Set up the backend:
cd ../server
yarn
  1. Configure environment variables:

    Create a .env file in the backend directory 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 .env file in the client directory:

    VITE_GOOGLE_CLIENT_ID=
    VITE_GOOGLE_CLIENT_SECRET=
    BETTER_AUTH_SECRET=
    VITE_BASE_URL=http://localhost:5173
    
  2. Set up the database:

cd server
npx prisma generate client
npx prisma migrate dev

Development

Start the backend server:

cd backend
yarn dev

Start the frontend development server:

cd client
yarn dev

The frontend will be available at http://localhost:5173 and the backend API at http://localhost:3000.

Features

  • 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

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

About

A complete full-stack development template to kickstart your hackathon projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published