A modern full-stack web application with:
- Frontend: Next.js (deployed on Vercel)
- Backend: Node.js/Express API (deployed on Railway)
- Database: PostgreSQL (deployed on Railway)
equify/
├── frontend/ # Next.js frontend application
├── backend/ # Node.js/Express API server
├── database/ # Database schemas and migrations
└── README.md
- Node.js 18+
- PostgreSQL (for local development)
- Git
-
Setup Backend
cd backend npm install cp .env.example .env # Configure your database connection in .env npm run dev
-
Setup Frontend
cd frontend npm install cp .env.local.example .env.local # Configure API endpoint in .env.local npm run dev
-
Setup Database
cd database # Run migrations psql -U your_user -d your_db -f init.sql
- Connect your GitHub repository to Vercel
- Set build command:
cd frontend && npm run build - Set output directory:
frontend/.next - Configure environment variables in Vercel dashboard
- Connect your GitHub repository to Railway
- Set start command:
cd backend && npm start - Configure environment variables in Railway dashboard
- Railway will automatically detect the Node.js app
- Add PostgreSQL service in Railway
- Use the provided DATABASE_URL in your backend environment variables
NODE_ENV=development
PORT=8000
DATABASE_URL=postgresql://username:password@localhost:5432/equify
JWT_SECRET=your_jwt_secret_here
CORS_ORIGIN=http://localhost:3000
NEXT_PUBLIC_API_URL=http://localhost:8000/api
NEXT_PUBLIC_APP_NAME=Equify
The API is documented and available at /api/docs when running the backend server.
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
MIT License