diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..15f62d7 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,11 @@ +/* eslint-env node */ +module.exports = { + root: true, + 'extends': [ + 'plugin:vue/vue3-essential', + 'eslint:recommended' + ], + parserOptions: { + ecmaVersion: 'latest' + } +} diff --git a/.gitignore b/.gitignore index 576cf17..efae95c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,30 @@ settings.toml chatbot/ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist-ssr +coverage +*.local + +/cypress/videos/ +/cypress/screenshots/ + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..4771846 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "Vue.volar", + "Vue.vscode-typescript-vue-plugin", + "dbaeumer.vscode-eslint" + ] +} diff --git a/README.md b/README.md index 70351af..93d6e8e 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,25 @@ user = user Then `sudo supervisorctl reread && sudo supervisorctl add barertc` to start the app. +# Developing This App + +In local development you'll probably run two processes in your terminal: one to `npm run watch` the Vue.js app and the other to run the Go server. + +Building and running the front-end app: + +```bash +# Install dependencies +npm install + +# Build the front-end +npm run build + +# Run the front-end in watch mode for local dev +npm run watch +``` + +And `make run` to run the Go server. + # License GPLv3. diff --git a/index.html b/index.html new file mode 100644 index 0000000..50196c2 --- /dev/null +++ b/index.html @@ -0,0 +1,35 @@ +{{define "index"}} + + +
+ + + + + + + +README.md
.
+