Skip to content

Commit 6333ae4

Browse files
committed
initial graphql
1 parent 0fa85de commit 6333ae4

31 files changed

+6975
-2
lines changed

.env

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Project
2+
PROJECT_NAME=fastapi-react-graphql
3+
4+
# Postgres
5+
POSTGRES_TAG=15.3-bullseye
6+
DB_NAME=iris
7+
DB_USER=user
8+
DB_PASSWORD=password
9+
DB_PORT=5432
10+
POSTGRES_DB_URL=postgresql://${DB_USER}:${DB_PASSWORD}@localhost/${DB_NAME}
11+
12+
# MetaBase
13+
METABASE_TAG=v0.48.0
14+
METABASE_PORT=3001
15+
16+
# CloudBeaver
17+
CLOUDBEAVER_TAG=23.3.1
18+
CLOUDBEAVER_PORT=8978
19+
20+
# Redis
21+
REDIS_TAG=7.2.2-bookworm
22+
REDIS_PORT=6379
23+
24+
# ELK
25+
ELASTICSEARCH_TAG=8.11.0
26+
ELASTICSEARCH_PORT=9200
27+
28+
# Adminer
29+
ADMINER_TAG=4.7.9-standalone
30+
ADMINER_PORT=8081

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ celerybeat.pid
120120
*.sage.py
121121

122122
# Environments
123-
.env
124123
.venv
125124
env/
126125
venv/
@@ -234,7 +233,6 @@ web_modules/
234233
.yarn-integrity
235234

236235
# dotenv environment variable files
237-
.env
238236
.env.development.local
239237
.env.test.local
240238
.env.production.local

client/.eslintrc.cjs

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:react/recommended',
7+
'plugin:react/jsx-runtime',
8+
'plugin:react-hooks/recommended',
9+
],
10+
ignorePatterns: ['dist', '.eslintrc.cjs'],
11+
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
12+
settings: { react: { version: '18.2' } },
13+
plugins: ['react-refresh'],
14+
rules: {
15+
'react/jsx-no-target-blank': 'off',
16+
'react-refresh/only-export-components': [
17+
'warn',
18+
{ allowConstantExport: true },
19+
],
20+
},
21+
}

client/.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

client/Dockerfile

Whitespace-only changes.

client/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# React + Vite
2+
3+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4+
5+
Currently, two official plugins are available:
6+
7+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

client/index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + React</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.jsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)