Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Browsers that we support

[production]
>0.2%
not dead
not op_mini all

[development]
last 1 chrome version
last 1 firefox version
last 1 safari version
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": [
"react-app",
"react-app/jest"
]
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.10.0
46 changes: 20 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,40 @@
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
# Getting Started with React Rampup

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
### Install nvm

The page will reload if you make edits.\
You will also see any lint errors in the console.
```nvm``` allows you to quickly install and use different versions of node via the command line.

### `npm test`
I really recommend you install node and npm using nvm. This is the fastest, cleanest and easiest way to do it.

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
That way, you install NVM simply doing:

### `npm run build`
```curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash```

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
To test that nvm was properly installed, close and re-open Terminal and enter nvm. If you get a nvm: command not found message, your OS may not have the necessary .bash_profile file. In Terminal, enter touch ~/.bash_profile and run the above install script again.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
And you are now able to install node typing:

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
```nvm install <version>```

### `npm run eject`
For example

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
```nvm install v16.10.0```

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.
if you just want to install the latest node version, you can just type

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.
```nvm install node```

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.
### `npm start`

## Learn More
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
The page will reload if you make edits.\
You will also see any lint errors in the console.

To learn React, check out the [React documentation](https://reactjs.org/).
### What about the features of this project?
In this I have worked on React/redux and Github API for a github profile viewer webapp in which we can follow the users.
20 changes: 1 addition & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 0 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@outkit/outkit": "^0.0.3",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
Expand Down Expand Up @@ -35,26 +34,5 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"react-router-dom": "^6.3.0"
}
}
Binary file removed public/favicon.ico
Binary file not shown.
Binary file added public/icons8-github-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons8-github-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 3 additions & 13 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="%PUBLIC_URL%/icons8-github-32.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
content="github profile viewer webapp"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/icons8-github-192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand All @@ -29,15 +29,5 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
11 changes: 3 additions & 8 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"src": "icons8-github-32.png",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
"type": "image/png"
},
{
"src": "logo192.png",
"src": "icons8-github-192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
Expand Down
5 changes: 1 addition & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './App.css';
import React from 'react';
import store,{persistor} from "./store";
import { Provider } from "react-redux";
import AppRoutes from "./routes"
Expand All @@ -7,15 +7,12 @@ import { PersistGate } from 'redux-persist/integration/react';
function App() {

return (
<div className='App'>
<Provider store={store}>
<PersistGate persistor={persistor}>
<AppRoutes/>
</PersistGate>
</Provider>
</div>
);
}

export default App;

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { useEffect, useState, useRef } from 'react';
import React, { Component } from 'react';
import { useSelector, useDispatch } from '../../store/index';
import Button from 'react-bootstrap/Button';
import Overlay from 'react-bootstrap/Overlay';
import Tooltip from 'react-bootstrap/Tooltip';
import profile from "../../component/image/107161_circle_github_icon.png";
import './style.scss';
import profile from "../image/107161_circle_github_icon.png";
import '../../styles/sass/main.scss'
import { useNavigate } from "react-router-dom";

export const Navbar = () => {
Expand All @@ -16,7 +17,7 @@ export const Navbar = () => {
const navigate = useNavigate();
useEffect(()=>{
if(searchedValue.length!=0){
navigate("/search");
navigate("/search/"+searchedValue);
}
},[searchedValue,navigate])

Expand Down
Empty file added src/comtainers/.gitkeep
Empty file.
Empty file added src/constants/.gitkeep
Empty file.
6 changes: 6 additions & 0 deletions src/constants/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const EnterPersonalAccessToken = "Please enter your personal Access Token";
export const EnterUserName = "Please enter your username";

export const LOGIN_REQUEST = "LOGIN_REQUEST";
export const LOGIN_SUCCESS = "LOGIN_SUCCESS";
export const LOGIN_ERROR = "LOGIN_ERROR";
25 changes: 8 additions & 17 deletions src/containers/home/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
import { useEffect, useState, useRef } from 'react';
import Button from 'react-bootstrap/Button';
import Overlay from 'react-bootstrap/Overlay';
import Tooltip from 'react-bootstrap/Tooltip';
import 'bootstrap/dist/css/bootstrap.css';
import { useSelector, useDispatch } from '../../store/index';
import './style.scss';
import profile from "../../component/image/107161_circle_github_icon.png";
import React from "react";

// TODO: Add Home page UI
export const HomePage = () => {
const {userData} = useSelector((state) => state.user)
const [show, setShow] = useState(false);
const [searchTerm, setSearchTerm] = useState('');
const target = useRef(null);
return(
<div>

</div>
)
}
<div>
<h3>Home Page</h3>
</div>
)
}
Loading