|
1 |
| -# Getting Started with Create React App |
| 1 | +# Frontend Mentor - IP address tracker solution |
2 | 2 |
|
3 |
| -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
| 3 | +This is a solution to the [IP address tracker challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/ip-address-tracker-I8-0yYAH0). |
4 | 4 |
|
5 |
| -## Available Scripts |
| 5 | +## Table of contents |
6 | 6 |
|
7 |
| -In the project directory, you can run: |
| 7 | +- [Frontend Mentor - IP address tracker solution](#frontend-mentor---ip-address-tracker-solution) |
| 8 | + - [Table of contents](#table-of-contents) |
| 9 | + - [Overview](#overview) |
| 10 | + - [The challenge](#the-challenge) |
| 11 | + - [Screenshot](#screenshot) |
| 12 | + - [Links](#links) |
| 13 | + - [My process](#my-process) |
| 14 | + - [Built with](#built-with) |
| 15 | + - [Author](#author) |
| 16 | + - [⚒ Usage](#-usage) |
| 17 | + - [👥 Clone the repo](#-clone-the-repo) |
| 18 | + - [📦 Install dependencies](#-install-dependencies) |
| 19 | + - [🔐 Store API KEY](#-store-api-key) |
| 20 | + - [✨ Start/Run the app](#-startrun-the-app) |
8 | 21 |
|
9 |
| -### `npm start` |
| 22 | +## Overview |
10 | 23 |
|
11 |
| -Runs the app in the development mode.\ |
12 |
| -Open [http://localhost:3000](http://localhost:3000) to view it in your browser. |
| 24 | +### The challenge |
13 | 25 |
|
14 |
| -The page will reload when you make changes.\ |
15 |
| -You may also see any lint errors in the console. |
| 26 | +Users should be able to: |
16 | 27 |
|
17 |
| -### `npm test` |
| 28 | +- View the optimal layout for each page depending on their device's screen size |
| 29 | +- See hover states for all interactive elements on the page |
| 30 | +- See their own IP address on the map on the initial page load |
| 31 | +- Search for any IP addresses or domains and see the key information and location |
18 | 32 |
|
19 |
| -Launches the test runner in the interactive watch mode.\ |
20 |
| -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. |
| 33 | +### Screenshot |
21 | 34 |
|
22 |
| -### `npm run build` |
| 35 | + |
23 | 36 |
|
24 |
| -Builds the app for production to the `build` folder.\ |
25 |
| -It correctly bundles React in production mode and optimizes the build for the best performance. |
| 37 | +### Links |
26 | 38 |
|
27 |
| -The build is minified and the filenames include the hashes.\ |
28 |
| -Your app is ready to be deployed! |
| 39 | +- Solution URL: [Github](https://github.com/metkerr/ip-address-tracker-react.git) |
| 40 | +- Live Site URL: [Live on Vercel](https://ip-address-tracker-react-two.vercel.app/) |
29 | 41 |
|
30 |
| -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |
| 42 | +## My process |
31 | 43 |
|
32 |
| -### `npm run eject` |
| 44 | +### Built with |
33 | 45 |
|
34 |
| -**Note: this is a one-way operation. Once you `eject`, you can't go back!** |
| 46 | +- Semantic HTML5 markup |
| 47 | +- Flexbox |
| 48 | +- Mobile-first workflow |
| 49 | +- [React](https://reactjs.org/) - JS library |
| 50 | +- [Tailwind](https://tailwindcss.com/) - For styles |
| 51 | +- [ipify API](https://www.ipify.org/) - Geolocation data API |
| 52 | +- [leafletjs](https://leafletjs.com/) - render interactive map API |
35 | 53 |
|
36 |
| -If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. |
| 54 | +## Author |
37 | 55 |
|
38 |
| -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. |
| 56 | +- Website - [Metker](https://metkerr.github.io/) |
| 57 | +- Frontend Mentor - [@metkerr](https://www.frontendmentor.io/profile/metkerr) |
| 58 | +- Twitter - [@metkerr](https://twitter.com/metkerr) |
39 | 59 |
|
40 |
| -You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. |
| 60 | +## ⚒ Usage |
| 61 | + ### 👥 Clone the repo |
41 | 62 |
|
42 |
| -## Learn More |
| 63 | + ```shell |
| 64 | + $ git clone https://github.com/metkerr/rest-countries-api-with-color-theme-switcher.git |
| 65 | + ``` |
43 | 66 |
|
44 |
| -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
| 67 | +### 📦 Install dependencies |
| 68 | +```shell |
| 69 | +$ cd rest-countries-api-with-color-theme-switcher |
| 70 | +$ npm install |
| 71 | +``` |
45 | 72 |
|
46 |
| -To learn React, check out the [React documentation](https://reactjs.org/). |
| 73 | +### 🔐 Store API KEY |
| 74 | +Create a .env file with GUI or with `.>.env ` command, and insert your ipify API KEY: |
| 75 | +```js |
| 76 | +REACT_APP_KEY=YOUR_API_KEY |
| 77 | +``` |
| 78 | +**you can get your own api key from https://www.ipify.org/** |
47 | 79 |
|
48 |
| -### Code Splitting |
49 |
| - |
50 |
| -This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) |
51 |
| - |
52 |
| -### Analyzing the Bundle Size |
53 |
| - |
54 |
| -This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) |
55 |
| - |
56 |
| -### Making a Progressive Web App |
57 |
| - |
58 |
| -This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) |
59 |
| - |
60 |
| -### Advanced Configuration |
61 |
| - |
62 |
| -This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) |
63 |
| - |
64 |
| -### Deployment |
65 |
| - |
66 |
| -This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) |
67 |
| - |
68 |
| -### `npm run build` fails to minify |
69 |
| - |
70 |
| -This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) |
| 80 | +### ✨ Start/Run the app |
| 81 | +```shell |
| 82 | +$ npm start |
| 83 | +``` |
0 commit comments