- User Authentication (Register/Login)
- Trip Management
- Flight Search (using Amadeus API)
- Event Planning
- Session-based Authentication
- PostgreSQL Database
- Node.js (v20 or higher)
- .env file
- Amadeus API credentials
- npm or yarn
Create a .env
file in the root directory.
- Clone the repository:
git clone <repository-url>
cd travel
- Install dependencies:
npm install
- Set up environment variables:
- Copy
.env.example
to.env
- Fill in your database and Amadeus API credentials
- Start the server:
npm start
The server will start on http://localhost:4000
For normal application operation, just start the server:
npm start
The application will:
- Connect to the existing database
- Use existing tables
- Not modify the schema
npm run dev
Detailed API documentation is available in docs/api-guide.md
Frontend developers should:
- Use the provided API documentation in docs/api-guide.md
- Enable credentials in API requests:
fetch(url, {
credentials: 'include',
// ... other options
})