This express.js backend server responds to API callbacks from the React Native frontend and provides endpoints for trip planning and chat history management.
Note
React Native Frontend: The companion mobile app is available at PlanIT Repository. Refer to its README for setup instructions and API integration details.
Important
This is a Proof of Concept backend service for PlanIT and should not be used for PRODUCTION.
- Node.js (v20.0.0 or higher)
- npm or yarn package manager
- PostgreSQL (v12.0 or higher)
Clone this Git repository to your local machine.
git clone https://github.com/Rongbin99/PlanIT-APIChange directory to this project.
cd PlanIT-APIInstall the node dependencies.
npm installClone the env.example file under /config and insert your API keys and configure the desired AI client
# default to OpenAI
AI_SERVICE=openai
OPENAI_API_KEY=
GEMINI_API_KEY=
UNSPLASH_API_KEY=Finally, run the server on your local machine.
npm starthttp://localhost:3000
GET /statusReturns server status and basic information.
GET /Returns API information and available endpoints.
For inquiries, feel free to reach out to me on Discord (my Discord server link) or via email gu.rongbin99@gmail.com. (serious inquiries only please)
Contributions are welcome and encouraged! Please fork the repository and create a new pull request for review and approval by a Codeowner.