Skip to content

Commit

Permalink
Merge pull request #5 from P7-AIS/working-grpc
Browse files Browse the repository at this point in the history
Working grpc
  • Loading branch information
mikkelklitlund authored Oct 16, 2024
2 parents 84fc41c + 88213f0 commit 926b8f6
Show file tree
Hide file tree
Showing 23 changed files with 943 additions and 1,031 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ dist-ssr
*.sln
*.sw?

generated
proto
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"semi": false,
"trailingComma": "es5",
"printWidth": 120
}
2 changes: 1 addition & 1 deletion AIS-protobuf
Submodule AIS-protobuf updated 1 files
+2 −2 ais.proto
53 changes: 7 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,11 @@
# React + TypeScript + Vite
# AIS-frontend

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
### Prerequisites

Currently, two official plugins are available:
- `npm i`\
- Install [Protobuf Compiler (protoc)](https://medium.com/@LogeshSakthivel/installing-protobuf-compiler-protoc-536e7770e13b).
- `npm run build:protos:(mac/win)`\

- [@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
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
### Start server

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default tseslint.config({
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})
```

- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
- Optionally add `...tseslint.configs.stylisticTypeChecked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:

```js
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
// Set the react version
settings: { react: { version: '18.3' } },
plugins: {
// Add the react plugin
react,
},
rules: {
// other rules...
// Enable its recommended rules
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
},
})
```
- `npm run dev:all`
Loading

0 comments on commit 926b8f6

Please sign in to comment.