Skip to content

Commit 6383591

Browse files
author
Flatlogic Bot
committed
Initial commit
0 parents  commit 6383591

File tree

145 files changed

+25288
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+25288
-0
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NODE_PATH=src/
2+
GENERATE_SOURCEMAP=false

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"singleQuote": true,
3+
"tabWidth": 2,
4+
"trailingComma": "all",
5+
"quoteProps": "as-needed",
6+
"jsxSingleQuote": true,
7+
"bracketSpacing": true,
8+
"bracketSameLine": false,
9+
"arrowParens": "always"
10+
}

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM node:14
2+
3+
# Create app directory
4+
WORKDIR /usr/src/app
5+
6+
# Install app dependencies
7+
# A wildcard is used to ensure both package.json AND package-lock.json are copied
8+
# where available (npm@5+)
9+
COPY package*.json ./
10+
11+
RUN yarn install
12+
# If you are building your code for production
13+
# RUN npm ci --only=production
14+
15+
# Bundle app source
16+
COPY . .
17+
18+
EXPOSE 3000
19+
CMD [ "yarn", "start:backend" ]

README.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# React Material Admin Full
2+
3+
## This project was generated by Flatlogic Platform.
4+
5+
## To start the project:
6+
7+
Install dependencies via npm or yarn
8+
9+
```shell
10+
npm install
11+
```
12+
13+
```shell
14+
yarn
15+
```
16+
17+
Run development server
18+
19+
```shell
20+
yarn start
21+
```
22+
23+
## Support
24+
25+
For any additional information please refer to [Flatlogic homepage](https://flatlogic.com).
26+
27+
## To start the project with Docker:
28+
29+
## Description:
30+
31+
The project contains the **docker folder** and the `Dockerfile`.
32+
33+
The `Dockerfile` is used to Deploy the project to Google Cloud.
34+
35+
The **docker folder** contains a couple of helper scripts:
36+
37+
- `docker-compose.yml` (all our services: web, backend, db are described here)
38+
- `start-backend.sh` (starts backend, but only after the database)
39+
- `wait-for-it.sh` (imported from https://github.com/vishnubob/wait-for-it)
40+
41+
> To avoid breaking the application, we recommend you don't edit the following files: everything that includes the **docker folder** and `Dokerfile`.
42+
43+
## Run services:
44+
45+
1. Install docker compose (https://docs.docker.com/compose/install/)
46+
47+
2. Move to `docker` folder. All next steps should be done from this folder.
48+
49+
`cd docker`
50+
51+
3. Make executables from `wait-for-it.sh` and `start-backend.sh`:
52+
53+
`chmod +x start-backend.sh && chmod +x wait-for-it.sh`
54+
55+
4. Download dependend projects for services.
56+
57+
5. Review the docker-compose.yml file. Make sure that all services have Dockerfiles. Only db service doesn't require a Dockerfile.
58+
59+
6. Make sure you have needed ports (see them in `ports`) available on your local machine.
60+
61+
7. Start services:
62+
63+
7.1. With an empty database `rm -rf data && docker-compose up`
64+
65+
7.2. With a stored (from previus runs) database data `docker-compose up`
66+
67+
8. Check http://localhost:3000
68+
69+
9. Stop services:
70+
71+
9.1. Just press `Ctr+C`

babel.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
presets: ['react-app'],
3+
plugins: [
4+
'@babel/plugin-proposal-class-properties',
5+
'@babel/plugin-proposal-optional-chaining',
6+
],
7+
};

package.json

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"name": "reactmaterialadminfull",
3+
"description": "React Material Admin Full - template backend",
4+
"version": "0.1.1",
5+
"private": true,
6+
"homepage": "./",
7+
"scripts": {
8+
"build": "cross-env REACT_APP_BACKEND=true PUBLIC_URL='./' react-scripts build",
9+
"start": "cross-env REACT_APP_BACKEND=true react-scripts start",
10+
"test": "react-scripts test",
11+
"format": "prettier --write src/"
12+
},
13+
"dependencies": {
14+
"@emotion/react": "^11.8.2",
15+
"@emotion/styled": "^11.8.1",
16+
"@mui/styles": "^5.6.2",
17+
"@mui/icons-material": "^5.5.1",
18+
"@mui/material": "^5.5.1",
19+
"@mui/styled-engine-sc": "^5.4.2",
20+
"@mui/x-data-grid": "^5.6.1",
21+
"@mui/x-date-pickers": "^5.0.0-alpha.1",
22+
"axios": "^0.21.1",
23+
"babel-eslint": "10.1.0",
24+
"date-fns": "2.28.0",
25+
"classnames": "^2.2.6",
26+
"connected-react-router": "^6.0.0",
27+
"css-loader": "2.1.1",
28+
"eslint": "^6.8.0",
29+
"eslint-config-react-app": "^5.2.1",
30+
"file-loader": "3.0.1",
31+
"formik": "2.2.9",
32+
"jsonwebtoken": "^8.5.1",
33+
"query-string": "7.1.0",
34+
"react": "^17.0.2",
35+
"react-dom": "^17.0.2",
36+
"react-redux": "^7.2.4",
37+
"react-router-dom": "^5.2.0",
38+
"react-scripts": "3.4.3",
39+
"history": "4.10.1",
40+
"react-syntax-highlighter": "^11.0.2",
41+
"tinycolor2": "^1.4.2",
42+
"moment": "2.29.1",
43+
"redux": "^4.0.5",
44+
"redux-thunk": "^2.3.0",
45+
"typescript": "^4.1.2",
46+
"url-loader": "2.3.0",
47+
"yup": "^0.32.9"
48+
},
49+
"eslintConfig": {
50+
"extends": "react-app"
51+
},
52+
"browserslist": [
53+
">0.2%",
54+
"not dead",
55+
"not ie <= 11",
56+
"not op_mini all"
57+
],
58+
"devDependencies": {
59+
"@babel/helper-call-delegate": "7.11.4",
60+
"@testing-library/jest-dom": "^5.11.4",
61+
"@testing-library/react": "^11.1.0",
62+
"@testing-library/user-event": "^12.1.10",
63+
"@types/jest": "^26.0.15",
64+
"@types/node": "^12.0.0",
65+
"@types/react": "^17.0.0",
66+
"@types/react-dom": "^17.0.0",
67+
"cross-env": "^7.0.3",
68+
"eslint-plugin-css-modules": "^2.11.0",
69+
"sass": "^1.45.0"
70+
}
71+
}

public/favicon.ico

3.78 KB
Binary file not shown.

public/index.html

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

public/logo192.png

5.22 KB
Loading

public/logo512.png

9.44 KB
Loading

0 commit comments

Comments
 (0)