- Node.js
- PostgreSQL
- npm or yarn package manager
- Install PostgreSQL on your system if not already installed
- Create a new database:
CREATE DATABASE dubai_jazz_db;- Update the
.envfile with your database credentials
-
Navigate to the project root directory
-
Install project dependencies
npm install-
Set up environment variables:
- Configure your environment variables:
DATABASE_URL=postgresql://postgres:{your-password}@localhost:5432/dubai_jazz_db
- Configure your environment variables:
-
Run database migrations
npm run db:push- Start the application
npm run devThe application should now be running with:
- Backend server on http://localhost:5000
- Frontend accessible through the same port
- Build the frontend
npm run build- Start the frontend
npm run start- Make sure PostgreSQL service is running before starting the application
- The application runs both frontend and backend from the root directory
- Check the console for any error messages during setup