You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-7Lines changed: 22 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,27 @@
1
1
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2
2
3
+
This project is part of the [Frontend Mentor Challenge - IP address tracker](https://www.frontendmentor.io/challenges/ip-address-tracker-I8-0yYAH0)
4
+
5
+

3
6
## Getting Started
4
7
5
-
First, run the development server:
8
+
First create a file `.env.local` in the root of the project. Copy the environment variables from `.env.local.example` to your `.env.local` and edit them per your needs.
9
+
10
+
You will have something like this:
11
+
```bash
12
+
# Environment variables secret available on server side
13
+
14
+
# add your ipify api key below
15
+
IPIFY_API_KEY=your_secret_api_key_here
16
+
17
+
# Public Environment variables available on client side
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
14
33
15
-
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
16
-
17
-
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
18
-
19
-
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
20
-
21
34
## Learn More
22
35
23
36
To learn more about Next.js, take a look at the following resources:
@@ -32,3 +45,5 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
32
45
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
33
46
34
47
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
0 commit comments