A modern full-stack application connecting Vercel, Git, Neon Database, and Supabase for www.preciselythesame.com.
- Next.js 14 with App Router
- TypeScript for type safety
- Tailwind CSS for styling
- Neon Database for PostgreSQL
- Supabase for additional backend services
- Vercel for deployment
- API Routes for backend functionality
- Database Schema with proper indexing
- Frontend: Next.js 14, React 18, TypeScript
- Styling: Tailwind CSS
- Database: Neon PostgreSQL
- Backend: Supabase
- Deployment: Vercel
- ORM: Drizzle ORM
- Database Driver: Neon Serverless Driver
vercel-neon-supabase-frontend/
├── src/
│ ├── app/
│ │ ├── api/
│ │ │ ├── users/route.ts
│ │ │ ├── projects/route.ts
│ │ │ └── preciselythesame/route.ts
│ │ ├── globals.css
│ │ ├── layout.tsx
│ │ └── page.tsx
│ ├── components/
│ │ ├── UserForm.tsx
│ │ └── ProjectForm.tsx
│ ├── lib/
│ │ ├── supabase.ts
│ │ ├── neon.ts
│ │ └── db.ts
│ └── types/
│ └── database.ts
├── database/
│ └── schema.sql
├── .env.local
├── vercel.json
├── package.json
└── README.md
npm install
Your .env.local
file is already configured with:
- Neon Database connection string
- Supabase credentials
- OpenAI API key
- GitHub token
npm run dev
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel --prod
npm run db:setup
preciselythesame
- Main project tableusers
- User managementprojects
- Project management
GET /api/users
- Fetch all usersPOST /api/users
- Create new user
GET /api/projects
- Fetch all projectsPOST /api/projects
- Create new project
GET /api/preciselythesame
- Fetch dataPOST /api/preciselythesame
- Create record
- Neon Database: PostgreSQL database with serverless driver
- Supabase: Authentication and additional backend services
- Vercel: Deployment and hosting
- GitHub: Version control and CI/CD
npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
npm run db:setup # Setup database schema
Required environment variables are configured in .env.local
:
DATABASE_URL
- Neon PostgreSQL connectionNEXT_PUBLIC_SUPABASE_URL
- Supabase project URLNEXT_PUBLIC_SUPABASE_ANON_KEY
- Supabase anonymous keySUPABASE_SERVICE_ROLE_KEY
- Supabase service role keyOPENAI_API_KEY
- OpenAI API keyGITHUB_TOKEN
- GitHub personal access token
The project is configured for Vercel deployment with:
- Automatic builds from Git
- Environment variable management
- Serverless functions for API routes
- Edge network optimization
- User Management: Create and manage users
- Project Management: Create and manage projects
- Real-time Database: Neon PostgreSQL with serverless driver
- Modern UI: Responsive design with Tailwind CSS
- Type Safety: Full TypeScript implementation
- API First: RESTful API endpoints
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License.
Built with ❤️ for Precisely The Same