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
Empty file removed apps/frontend/.env
Empty file.
41 changes: 21 additions & 20 deletions apps/frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# 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

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
17 changes: 3 additions & 14 deletions apps/frontend/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

# Switch from TypeScript to JavaScript

- Close Docker
- Run in root:

```
mv -f ./apps/frontend/README.md ./apps/README.md && rm -rf ./apps/frontend && yarn create react-app ./apps/frontend && mv -f ./apps/README.md ./apps/frontend/README.md && touch ./apps/frontend/.env
```

- Build and run docker: https://github.com/assoconnect/remote-test#todo-before-the-test
This project was bootstrapped with [Vite](https://vitejs.fr/guide/).

# Commands

Expand All @@ -18,15 +7,15 @@ mv -f ./apps/frontend/README.md ./apps/README.md && rm -rf ./apps/frontend && ya
Run in root:

```
docker-compose exec react yarn
docker-compose exec react npm
```

## Install one dependency

Run in root:

```
cd ./apps/frontend/ && yarn add <package_name> && cd ../.. && docker-compose exec react yarn
cd ./apps/frontend/ && npm install <package_name> && cd ../.. && docker-compose exec react npm
```

# Stub API endpoint documentation
Expand Down
23 changes: 23 additions & 0 deletions apps/frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'

export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
},
])
13 changes: 13 additions & 0 deletions apps/frontend/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>frontend</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading