- Make sure Git and NodeJS is installed
- Clone this repository to your local computer.
- Create
.env.local
file in root folder. - Contents of .env.local:
NEXT_PUBLIC_RAPID_API_KEY=XXXXXXXXXXXXXXXXXXXX
NEXT_PUBLIC_CAR_IMAGE_API_KEY=XXXXXXXXXXXXXXXXXXXX
-
Open terminal in root directory. Run
npm install
oryarn install
. -
Now, to setup API, go to Rapid API Website and create an account.
-
Enable this API to fetch Cars data: API: Cars by API Ninjas.
-
After enabling you can get your API Keys and paste them in
.env
file inNEXT_PUBLIC_RAPID_API_KEY
. -
To fetch car image details, go to Car Image API and create and account.
-
Now paste your API Keys in
.env
file inNEXT_PUBLIC_CAR_IMAGE_API_KEY
. -
Now app is fully configured 👍 and you can start using this app using
npm run dev
oryarn run dev
.
NOTE: Make sure you don't share these keys publicaly.
You might encounter some bugs while using this app. You are more than welcome to contribute. Just submit changes via pull request and I will review them before merging. Make sure you follow community guidelines.
You can also give this repository a star to show more people and they can use this repository.
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.