Skip to content

Commit

Permalink
Added react to frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
swornimbarahi committed Oct 18, 2019
1 parent f5d07ca commit f4fa473
Show file tree
Hide file tree
Showing 27 changed files with 4,971 additions and 1,228 deletions.
17 changes: 17 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Contributing

### Pull Request Process
* Create an issue if you find any mistakes. If you wish to work on this issue yourself, assign the issue to yourself.
* Otherwise, either notify someone of your issue or wait for someone to notice it.
* Create a branch with a valid name conforming to the conventional commits standards. For example:
* If your issue is adding a new feature and the feature is a sidebar, name your branch something like feat/sidebar.
* If your issue is fixing a bug on a specific component, name your branch something like fix/component-name
* Your commits to the branch have to make as much sense as possible. Please conform to the conventional commits standards for this purpose as well. We expect you to have the following template for all of your branch names. `<initials>-<task-name>`
For example. `gr-create-navbars`


Please note we have a code of conduct, please follow it in all your interactions with the project.

### For Non Coding Hub members:
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

12 changes: 0 additions & 12 deletions packages/frontend/.babelrc

This file was deleted.

23 changes: 23 additions & 0 deletions packages/frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
68 changes: 68 additions & 0 deletions packages/frontend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

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

### `yarn eject`

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

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.

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.

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.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `yarn build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
51 changes: 26 additions & 25 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
{
"name": "frontend",
"version": "1.0.0",
"main": "index.js",
"name": "navicourse",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.10.2",
"react-dom": "^16.10.2",
"react-scripts": "3.2.0"
},
"scripts": {
"dev:assets": "webpack --watch",
"dev:start": "live-server --open=./public/ --host=localhost --watch=./public/",
"dev": "npm-run-all -p dev:*",
"build": "cross-env NODE_ENV=production webpack"
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/preset-env": "^7.6.2",
"babel-loader": "^8.0.6",
"cross-env": "^6.0.0",
"css-loader": "^3.2.0",
"cssnano": "^4.1.10",
"file-loader": "^4.2.0",
"live-server": "^1.2.1",
"mini-css-extract-plugin": "^0.8.0",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.5",
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^6.7.0",
"sass-loader": "^8.0.0",
"webpack": "^4.41.0",
"webpack-cli": "^3.3.9"
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
13 changes: 0 additions & 13 deletions packages/frontend/postcss.config.js

This file was deleted.

135 changes: 0 additions & 135 deletions packages/frontend/public/assets/scripts/bundle.js

This file was deleted.

20 changes: 0 additions & 20 deletions packages/frontend/public/assets/styles/main.css

This file was deleted.

Binary file added packages/frontend/public/favicon.ico
Binary file not shown.
Loading

0 comments on commit f4fa473

Please sign in to comment.