This is a Next.js project bootstrapped with create-next-app
.
A travel app that allows users to plan their trips and save their favorite destinations.
Note: Please read this document carefully before running the project. If you have any questions, please contact Pranav.
The project has two parts. The front end and the back end. The front end is built with React(Next.js) and the back end is built with Python(maily APIs.) As that is the case, both parts are in different git repositories, and have to run simultaneously.
- Clone the CMSC447-TravelApp-API git repository
- Navigate to the root directory of the project
- Run
pip install -r requirements.txt
to install all the dependencies - Run
python3 app.py
ORpython app.py
to start the API server
- Clone the CMSC447-TravelApp git repository
- Navigate to the root directory of the project
- Perform a
git checkout Final
to checkout the branch that has the final code - Add a
.env.local
file with the following contents:
NEXT_PUBLIC_SUPABASE_URL=https://wlsngebjldmcjopnueul.supabase.co/
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Indsc25nZWJqbGRtY2pvcG51ZXVsIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTkyMDk2MjYsImV4cCI6MjAxNDc4NTYyNn0.EnffLt8wSfVdJbR5-G3kD0g-j3Dib8OIM8tIV4jaH4M
- Run
npm install
to install all the dependencies - Run
npm run dev
to start the development server - Navigate to
localhost:3000
to view the project
On the sign in page, click on create account and then proceed. There will be no email verification, so you can directly sign in after creating an account. However, you will have to refresh the after clickin on sign in.
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.