A modern web application built with the T3 Stack, featuring Next.js, tRPC, Prisma, NextAuth.js, and Tailwind CSS.
Watch our demo video to see the application in action: https://www.loom.com/share/f99bbe6a5a2240ee8a6dc14a03af1a33
Before you begin, ensure you have the following installed:
git clone https://github.com/your-username/bez-gradski.git
cd bez-gradskipnpm installCreate a .env file in the root directory:
# Database URL for PostgreSQL
DATABASE_URL="postgresql://postgres:password@localhost:5432/bez-gradski"
# Next Auth
NEXTAUTH_SECRET="your-nextauth-secret"
NEXTAUTH_URL="http://localhost:3000"
# Add any other required environment variables hereWe provide a script to easily start a PostgreSQL database in Docker:
chmod +x start-database.sh # Make the script executable
./start-database.shThis script will:
- Check for Docker/Podman installation
- Verify port availability
- Start a PostgreSQL container
- Generate a secure password if you're using the default
- Update your .env file with the new database credentials
Run the database migrations to set up your database schema:
pnpm prisma db push # For development
# or
pnpm prisma migrate deploy # For productionpnpm devYour application should now be running at http://localhost:3000
pnpm dev- Start the development serverpnpm build- Build the application for productionpnpm start- Start the production serverpnpm lint- Run ESLintpnpm format- Format code with Prettierpnpm type-check- Run TypeScript type checking
- Next.js - React framework
- tRPC - End-to-end typesafe APIs
- Prisma - Database ORM
- NextAuth.js - Authentication
- Tailwind CSS - CSS framework
- PostgreSQL - Database
This application can be deployed on various platforms:
For detailed deployment instructions, follow the links above.
- 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 GNU General Public License v3.0 - see the LICENSE file for details.