This website is about finding hotels in California. This is a mock website and no data in this website is actual.
This project is a full-stack project. This repository is the frontend for this application which is deployed to Vercel, you can find the backend repository consisting of a Strapi application with this URL 👉🏻 View Backend Repo
- Next JS
- Tailwind CSS
- Vercel (Deployment)
Make sure that you have the backend setup first.
-
Clone and install packages.
npm install
-
Get your backend URL, and replace the following line in config/index.js
export const API_URL = process.env.NEXT_PUBLIC_API_URL || "<your_backend_url>";
-
Start the project
npm run dev
-
The strapi backend may not contain data, if so remind to add data to the Strapi backend.
-
Strapi
find
andfindOne
are private by default, edit those in theroles
section'sPublic
role Strapi admin.
Add the following line to the config/index.js before deploying.
export const NEXT_URL = process.env.NEXT_PUBLIC_FRONTEND_URL || "<your_hosted_backend_url>";