Skip to content

Commit 7a09fbb

Browse files
committed
first commit
1 parent 58a88f7 commit 7a09fbb

24 files changed

+3224
-2
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SKIP_PREFLIGHT_CHECK=true

.eslintrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"root": true,
3+
"extends": [
4+
"eslint:recommended",
5+
"plugin:react/recommended",
6+
"plugin:jsx-a11y/recommended"
7+
],
8+
{
9+
"plugins": [
10+
"jsx-a11y"
11+
]
12+
},
13+
"rules": {
14+
"jsx-a11y/anchor-is-valid": [ "error", {
15+
"components": [ "Link" ],
16+
"specialLink": [ "hrefLeft", "hrefRight" ],
17+
"aspects": [ "noHref", "invalidHref", "preferButton" ]
18+
}]
19+
}
20+
}

.eslintrc.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2020: true
5+
},
6+
extends: [
7+
'plugin:react/recommended',
8+
"eslint:recommended",
9+
'standard'
10+
],
11+
parserOptions: {
12+
ecmaFeatures: {
13+
jsx: true
14+
},
15+
ecmaVersion: 11,
16+
sourceType: 'module'
17+
},
18+
plugins: [
19+
'react'
20+
],
21+
rules: {
22+
"space-before-function-paren": ["error", "never"],
23+
"react/prop-types": "off",
24+
"semi": ["error", "always"],
25+
"indent": ["error", 2]
26+
}
27+
}

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
yarn.lock
25+
package-lock.json

README.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,37 @@
1-
# react-crm
2-
CRM UI developed in reactjs for Django-CRM
1+
# django-crm-react-ui
2+
**To run the Project**
3+
In the project directory, you can run:
4+
5+
```sh
6+
$ cd django-crm-react-ui
7+
$ npm install
8+
$ npm start
9+
```
10+
11+
Runs the app in the development mode.
12+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13+
14+
The page will reload if you make edits.
15+
You will also see any lint errors in the console.
16+
17+
**Eslint..**
18+
```sh
19+
$ npm install -g eslint // to install globally
20+
```
21+
```sh
22+
$ npm run eslint
23+
```
24+
you will get all syntax errors and warnings
25+
go through
26+
https://eslint.org/docs/rules/ for eslint rules and
27+
https://eslint.org/docs/user-guide/getting-started for configuration
28+
29+
**Testing**
30+
```sh
31+
$ npm test
32+
```
33+
34+
Launches the test runner in the interactive watch mode.
35+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
36+
37+
**Happy Coding :)**

package.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"name": "bottlecrm",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@testing-library/jest-dom": "^4.2.4",
7+
"@testing-library/react": "^9.3.2",
8+
"@testing-library/user-event": "^7.1.2",
9+
"react": "^16.13.1",
10+
"react-dom": "^16.13.1",
11+
"react-router-dom": "^5.2.0",
12+
"react-scripts": "3.4.1"
13+
},
14+
"scripts": {
15+
"start": "react-scripts start",
16+
"build": "react-scripts build",
17+
"test": "react-scripts test",
18+
"eject": "react-scripts eject",
19+
"eslint": "eslint src/**/*.js"
20+
},
21+
"eslintConfig": {
22+
"extends": "react-app"
23+
},
24+
"browserslist": {
25+
"production": [
26+
">0.2%",
27+
"not dead",
28+
"not op_mini all"
29+
],
30+
"development": [
31+
"last 1 chrome version",
32+
"last 1 firefox version",
33+
"last 1 safari version"
34+
]
35+
},
36+
"devDependencies": {
37+
"eslint": "^7.5.0",
38+
"eslint-config-standard": "^14.1.1",
39+
"eslint-plugin-import": "^2.22.0",
40+
"eslint-plugin-jsx-a11y": "^6.3.1",
41+
"eslint-plugin-node": "^11.1.0",
42+
"eslint-plugin-promise": "^4.2.1",
43+
"eslint-plugin-react": "^7.20.5",
44+
"eslint-plugin-standard": "^4.0.1"
45+
}
46+
}

public/index.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Web site created using create-react-app"
11+
/>
12+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
14+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" />
15+
<link rel="stylesheet" href="./main.css" />
16+
<!--
17+
manifest.json provides metadata used when your web app is installed on a
18+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
19+
-->
20+
<!--
21+
Notice the use of %PUBLIC_URL% in the tags above.
22+
It will be replaced with the URL of the `public` folder during the build.
23+
Only files inside the `public` folder can be referenced from the HTML.
24+
25+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
26+
work correctly both with client-side routing and a non-root public URL.
27+
Learn how to configure a non-root public URL by running `npm run build`.
28+
-->
29+
<title>React App</title>
30+
</head>
31+
<body>
32+
<noscript>You need to enable JavaScript to run this app.</noscript>
33+
<div id="root"></div>
34+
<!--
35+
This HTML file is a template.
36+
If you open it directly in the browser, you will see an empty page.
37+
38+
You can add webfonts, meta tags, or analytics to this file.
39+
The build step will place the bundled scripts into the <body> tag.
40+
41+
To begin the development, run `npm start` or `yarn start`.
42+
To create a production bundle, use `npm run build` or `yarn build`.
43+
-->
44+
</body>
45+
</html>

0 commit comments

Comments
 (0)