Modern social network built with Next.js, Prisma, and Docker
Before you begin, ensure you have the following installed:
- Node.js
v16+
- Docker & Docker Compose
- yarn package manager
📝 Note: Edit the .env file and fill in the required environment variables
# Install dependencies
yarn install
# Start Docker services (database, redis, etc.)
yarn docker:dev
# Run database migrations
yarn db:migrate
# Start the application
yarn dev
🎉 That's it! Your application should be running at http://localhost:3000
Launch the database GUI to view and edit your data:
yarn db:studio
📍 Access: http://localhost:5555
# 🔥 Development
yarn dev # Start development server
yarn build # Build for production
yarn start # Start production server
yarn lint # Run ESLint
# 🐳 Docker
yarn docker:dev # Start development containers
yarn docker:prod # Start production containers
# 🗃 Database
yarn db:studio # Open Prisma Studio
yarn db:migrate # Run migrations
yarn db:generate # Generate Prisma client
yarn db:seed # Seed database
yarn db:reset # Reset database
📝 Note: Edit the .env file and fill in the required environment variables
# Deploy
docker compose -f docker-compose.prod.yml up -d