Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend #88

Merged
merged 197 commits into from
May 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
0a7ec36
Set default Sass output style to expanded
Dutchman97 Jul 24, 2021
84088b3
Add .code-workspace to .gitignore
Dutchman97 Jul 24, 2021
39a6d05
The first steps
Dutchman97 Jul 26, 2021
cd39f48
Refactor util stuff (including ResultsGenerator) into their own module
Dutchman97 Jul 29, 2021
46f8498
Fix errors introduced by prev commit; improve JSON encoding
Dutchman97 Jul 29, 2021
703012a
Start with Vue front-end
Dutchman97 Aug 1, 2021
438b9b3
Can call Django API from Vue now
Dutchman97 Aug 1, 2021
47cf5f1
Update .gitignore
Dutchman97 Aug 7, 2021
04b7220
Make Django serve front-end; update README.md; update npm packages
Dutchman97 Aug 7, 2021
7f67c62
CORS stuff not needed anymore
Dutchman97 Aug 7, 2021
e2d0853
Fix config; add favicon stuff
Dutchman97 Aug 7, 2021
6f36ea7
Basic navbar
Dutchman97 Aug 8, 2021
622ffb4
Start with login/logout/user stuff in navbar, logging in works
Dutchman97 Aug 12, 2021
b610179
Logging out works; navbar works as before; misc. fixes
Dutchman97 Aug 13, 2021
56ed1b5
Put modal stuff into their own components
Dutchman97 Aug 14, 2021
286f3a3
Remove unused stuff
Dutchman97 Aug 14, 2021
019ca7b
Slightly refactored AJAX request stuff
Dutchman97 Aug 14, 2021
27b4daa
Move data classes to own file; index api returns more stuff
Dutchman97 Aug 20, 2021
0d0bda8
Convert JSON responses and requests to camelcase and snakecase respec…
Dutchman97 Aug 20, 2021
a2f0f9c
Misc. fixes; index now renders years/seasons
Dutchman97 Aug 21, 2021
e56f6de
Add Survey component + misc. improvements
Dutchman97 Aug 21, 2021
e3b1789
Index api only returns (filtered) list of surveys now, sorting and st…
Dutchman97 Aug 21, 2021
01da6b7
Misc. fixes; improve survey rendering; note to self: avoid typecastin…
Dutchman97 Aug 21, 2021
34529da
Add survey opening/closing time; misc. stuff
Dutchman97 Aug 21, 2021
74970ae
Fix time stuff
Dutchman97 Aug 21, 2021
e7a1e81
Index almost finished, need anime name+image components still
Dutchman97 Aug 21, 2021
91c9c62
Add anime names component; fix props as I was misunderstanding how th…
Dutchman97 Aug 21, 2021
4670524
Add anime image component; fix /files/ and /static/ going to Vue
Dutchman97 Aug 21, 2021
a4e2cb3
Couple design fixes
Dutchman97 Aug 21, 2021
5661547
Couple small page fixes
Dutchman97 Aug 21, 2021
7c81725
Made getting top anime results for index generic
Dutchman97 Aug 22, 2021
5dae975
Minor improvements and small visual changes
Dutchman97 Aug 22, 2021
a7f1e0a
Fix upcoming/ongoing survey results data getting sent; start with upc…
Dutchman97 Aug 22, 2021
c058d25
Add anime images for upcoming/ongoing surveys; some visual changes
Dutchman97 Aug 23, 2021
1148f02
Add Survey view; replace survey div in Index with router-link and edi…
Dutchman97 Aug 24, 2021
f9024dd
Add simple 404 page
Dutchman97 Aug 24, 2021
6016948
Survey form stuff
Dutchman97 Aug 27, 2021
f2d0e36
Survey form stuff
Dutchman97 Aug 29, 2021
6ee32fd
Reorganized some stuff + some fixes
Dutchman97 Aug 29, 2021
abdb266
More reorganizing + fixes
Dutchman97 Aug 29, 2021
58107cd
Remove unused stuff
Dutchman97 Aug 29, 2021
fb2e5c7
Reorganize stuff; start with survey form page
Dutchman97 Sep 5, 2021
5c9260b
survey_form.py sends all necessary data now I think
Dutchman97 Sep 9, 2021
812080a
Age/gender input + minor fixes
Dutchman97 Sep 9, 2021
d990ae6
Small fixes
Dutchman97 Sep 9, 2021
235aa82
Anime cards in form
Dutchman97 Sep 10, 2021
b208a07
npm VS Code config broke for me for some reason, here's a workaround
Dutchman97 Sep 10, 2021
25d06d2
Update geckodriver + misc
Dutchman97 Sep 10, 2021
6dfb89f
Last form inputs
Dutchman97 Sep 10, 2021
cd9b70c
Cleaned-up rendering logic
Dutchman97 Sep 11, 2021
acc3ae0
Split up anime form card into own component; add special anime sectio…
Dutchman97 Sep 11, 2021
f5685f1
Changing labels for form based on preseason/new
Dutchman97 Sep 11, 2021
a09ee88
Improve watching/underwatched checkboxes; fix expectations select box
Dutchman97 Sep 11, 2021
2b66d5e
Improve AnimeImages component
Dutchman97 Sep 11, 2021
2916428
Back-end reads form response data
Dutchman97 Sep 12, 2021
fc2e0fd
Improve(?) submission data parsing
Dutchman97 Sep 12, 2021
827e828
Add checkbox to link response to user; misc. improvements
Dutchman97 Sep 12, 2021
4a15434
Fix stuff from prev commit; improve error handling
Dutchman97 Sep 12, 2021
3e76390
Can now store data, but validation goes wrong
Dutchman97 Sep 12, 2021
5038bc3
Small frontend fix
Dutchman97 Sep 13, 2021
23e0674
Fix validation for intended use cases
Dutchman97 Sep 14, 2021
f85753c
Small frontend fix; remove prev migrations since I don't think it was…
Dutchman97 Sep 15, 2021
438508d
Just kidding it was necessary, also fixed saving models
Dutchman97 Sep 16, 2021
1c90efc
Dumb request error handling + redirect after submitting form
Dutchman97 Sep 17, 2021
94074d9
Add a way to show notifications
Dutchman97 Sep 18, 2021
25fccbb
Use Bootstrap's Toast class for notifications
Dutchman97 Sep 18, 2021
d50da20
Improved error handling on frontend and backend
Dutchman97 Sep 18, 2021
2612829
Dumb way of showing error notifications
Dutchman97 Sep 18, 2021
11078c0
Cleaned up all request stuff
Dutchman97 Sep 18, 2021
4700ba0
Error handling: two steps forward, one step backward?
Dutchman97 Sep 18, 2021
1a3a6e3
Remove prints
Dutchman97 Sep 19, 2021
861cd0a
Form validation errors are now displayed
Dutchman97 Sep 19, 2021
8469358
Fix being able to answer surveys that are not ongoing
Dutchman97 Sep 19, 2021
073e7b0
If statements in index for whether survey upcoming/ongoing/finished
Dutchman97 Sep 20, 2021
4d83bfc
Upcoming/ongoing/finished now properly displayed on index
Dutchman97 Sep 21, 2021
5fe06d6
Improve modal
Dutchman97 Sep 23, 2021
98cb5a3
Auto-generate modal id
Dutchman97 Sep 23, 2021
7754145
Improve modal; add missing anime request modal to survey form page
Dutchman97 Sep 23, 2021
60f19ba
Clean-up
Dutchman97 Sep 23, 2021
5395ebe
More clean-up
Dutchman97 Sep 24, 2021
7e28ae9
Missing anime modal + various fixes
Dutchman97 Sep 24, 2021
2aa7a79
Setup missing anime backend endpoint
Dutchman97 Sep 24, 2021
07083b6
Missing anime requests get saved now
Dutchman97 Sep 26, 2021
99304e2
Validation errors are now displayed for missing anime form
Dutchman97 Sep 26, 2021
fe4e284
Refactor request-related stuff on frontend
Dutchman97 Sep 27, 2021
fdb2db2
POST -> PUT; lot of cleanup
Dutchman97 Sep 27, 2021
b56fbb8
Results data
Dutchman97 Oct 23, 2021
23a953e
Start with results page
Dutchman97 Nov 22, 2021
533b9b3
Chart works (no datalabels yet)
Dutchman97 Nov 26, 2021
09a0b83
Add datalabels package, fix chart tooltips
Dutchman97 Nov 26, 2021
8ad12f3
Gender distribution chart + rest of misc results
Dutchman97 Nov 27, 2021
2a9f3a2
Stalling finishing the results page by rewriting index page
Dutchman97 Nov 27, 2021
07fed40
Rewrite smaller components
Dutchman97 Nov 27, 2021
567d02b
Fix chart title
Dutchman97 Nov 27, 2021
31074a5
Basic table
Dutchman97 Nov 28, 2021
25358d4
Table component
Dutchman97 Nov 28, 2021
8fe4ef3
Results page style changes + misc stuff
Dutchman97 Nov 29, 2021
f782bcf
Results table header + misc. optimizations
Dutchman97 Nov 29, 2021
a25401a
Small fix
Dutchman97 Dec 2, 2021
eda69d8
Collapsable region + basic misc. popularity tables
Dutchman97 Dec 2, 2021
e59281d
Table with top 3 component
Dutchman97 Dec 4, 2021
06a9f0f
Add extra results + visual improvements
Dutchman97 Dec 4, 2021
2eb279e
Improve collapsable region styling
Dutchman97 Dec 4, 2021
238338b
Small stylesheet improvements(?)
Dutchman97 Dec 4, 2021
6f53833
Add top 3
Dutchman97 Dec 4, 2021
b850156
Add leftover results tables
Dutchman97 Dec 6, 2021
804ba31
Remove inverse versions of gender pop ratio / score diff result types
Dutchman97 Dec 6, 2021
cbf9eed
Do not pre-multiply percentage results by 100
Dutchman97 Dec 6, 2021
879e10c
TablePair component
Dutchman97 Dec 6, 2021
8fd9e3a
Use table tags, fix image styling
Dutchman97 Dec 11, 2021
23477bc
Add subtitle to pages
Dutchman97 Dec 11, 2021
7f13a28
Add extra survey route validation + route error notification
Dutchman97 Dec 11, 2021
81f0c9d
Imrpove routing stuff
Dutchman97 Dec 11, 2021
d2e949d
Add title to table w/ top3 component + some cleanup
Dutchman97 Dec 11, 2021
b981e0c
Add bottom ranking for table
Dutchman97 Dec 11, 2021
89a70a1
Remove unused django views; move index/account views to surveysite
Dutchman97 Dec 13, 2021
be8c00a
Use POST request to log in
Dutchman97 Dec 13, 2021
c0d2f68
django-allauth 0.45.0 -> 0.47.0
Dutchman97 Dec 13, 2021
1023469
Basic anime table component
Dutchman97 Dec 14, 2021
c89fc47
Split up results component/route in summary+full
Dutchman97 Dec 16, 2021
9ab1077
Move couple data classes to own file; add more table stuff
Dutchman97 Dec 16, 2021
361d1f2
Fix AnimeImages component maxheight bug
Dutchman97 Dec 16, 2021
16b4df1
Basic full results table works
Dutchman97 Dec 16, 2021
e5c7704
Fix faulty route (this was such a pain to debug)
Dutchman97 Dec 18, 2021
9b6a4da
Made table sortable
Dutchman97 Dec 18, 2021
3722b42
Simplify table
Dutchman97 Dec 18, 2021
71a3b83
Make columns togglable
Dutchman97 Dec 18, 2021
79c8c95
Add clickable CSS class; correct columns
Dutchman97 Dec 18, 2021
c563d5d
Move column toggles outside of AnimeTable component
Dutchman97 Dec 25, 2021
7841fce
Bit of cleanup
Dutchman97 Dec 25, 2021
f7ac9f2
More clean-up for form components
Dutchman97 Dec 26, 2021
66d0b58
Rework http request stuff
Dutchman97 Dec 26, 2021
7329c9e
Rework last bit of http request stuff
Dutchman97 Dec 26, 2021
1234c58
Add popularity threshold filter checkbox to full results table
Dutchman97 Dec 26, 2021
a3b48ef
Move validation error interface
Dutchman97 Dec 27, 2021
e8d3246
Small improvements
Dutchman97 Dec 28, 2021
e5adfe9
Small user stuff improvements
Dutchman97 Dec 31, 2021
9e6467e
More user authentication stuff
Dutchman97 Dec 31, 2021
35d982a
datejs
Dutchman97 Jan 1, 2022
342be9e
Bit of cleanup
Dutchman97 Jan 2, 2022
bf8c298
Small fixes
Dutchman97 Jan 15, 2022
419bc9f
Buttons and stuff on results pages
Dutchman97 Feb 2, 2022
6d4652e
AnimeTable -> FullResultsTable
Dutchman97 Feb 6, 2022
d935057
Link under result tables sort full result tables properly
Dutchman97 Feb 26, 2022
e1b2d8c
Set default router scroll behavior
Dutchman97 Feb 26, 2022
5a49bb1
Fix sorting on series results table
Dutchman97 Feb 28, 2022
d39ce83
Add full results table sorting icons
Dutchman97 Feb 28, 2022
e27cbd6
Better sorting icons, fix route query editing, fix scrolling, fix nam…
Dutchman97 Mar 2, 2022
b29dc31
Add dropdown selector for full results table columns
Dutchman97 Mar 5, 2022
58624ba
Improve dropdown selector
Dutchman97 Mar 5, 2022
0e66e65
Small styling improvements
Dutchman97 Mar 5, 2022
4c2510b
Index page styling improvements
Dutchman97 Mar 6, 2022
a168c7c
AnimeNames improvements
Dutchman97 Mar 6, 2022
e6ef077
Misc improvements
Dutchman97 Mar 7, 2022
7fc4466
Update almost all packages + fixes
Dutchman97 Mar 7, 2022
922d78f
Merge remote-tracking branch 'origin/main' into frontend
Dutchman97 Mar 7, 2022
36c29fc
Delete old files
Dutchman97 Mar 7, 2022
3c7dd2e
Remove django_sass + stuff
Dutchman97 Mar 9, 2022
09a6726
Update package @vue/cli from v4 to v5
Dutchman97 Mar 9, 2022
d21c0d2
And we're up-to-date
Dutchman97 Mar 9, 2022
cf5c018
Jank QoL thing + small fix
Dutchman97 Mar 9, 2022
f8389ae
required: true
Dutchman97 Mar 9, 2022
e561e0f
Fix 404 handling
Dutchman97 Mar 12, 2022
a64614a
Fix missing anime endpoint not having authentication
Dutchman97 Mar 12, 2022
66db8a0
Update packages
Dutchman97 Mar 12, 2022
c64c7b5
What was this package even
Dutchman97 Mar 12, 2022
b51c9a2
Fix 404 handling fix
Dutchman97 Mar 12, 2022
b70cd10
Make routes consistent with main branch
Dutchman97 Mar 13, 2022
0673979
Add loading spinner
Dutchman97 Mar 13, 2022
5182e5c
Fix anime images not aligning properly
Dutchman97 Mar 13, 2022
c0de83c
ResultsType -> ResultType (frontend)
Dutchman97 Mar 13, 2022
fb77049
Fix incorrect results in index caused by NaN comparisons, fix text
Dutchman97 Mar 13, 2022
5135886
ResultsType -> ResultType (backend)
Dutchman97 Mar 13, 2022
94b8178
Remove prints
Dutchman97 Mar 13, 2022
5dc0465
Whoops
Dutchman97 Mar 13, 2022
6d0d043
Update @popperjs/core
Dutchman97 Mar 13, 2022
834e570
Update packages
Dutchman97 Mar 16, 2022
0dd76ba
Update README.md
Dutchman97 Mar 16, 2022
3afeae6
Bit of clean-up
Dutchman97 Mar 16, 2022
b8915a1
Add two-way binding to DropdownMultiSelet
Dutchman97 Mar 16, 2022
1bbe370
Hide certain columns in full results by default
Dutchman97 Mar 16, 2022
80a5cb0
Small improvements
Dutchman97 Mar 23, 2022
bd09555
Prevent index api data from being cached downstream
Dutchman97 Mar 23, 2022
86723cf
Create .nvmrc
eritbh Mar 26, 2022
c94fa8e
Update deploy workflow with frontend build
eritbh Mar 26, 2022
168ed69
Merge pull request #84 from r-anime/update-frontend-deploy
Dutchman97 Mar 26, 2022
159b6ac
Update package-lock.json
Dutchman97 Mar 26, 2022
7bef0e7
Remove package @wdio/sync
Dutchman97 Mar 26, 2022
f35f8fb
Update packages
Dutchman97 May 29, 2022
6f83ad9
Bugfix
Dutchman97 May 29, 2022
05e193b
okay here let's test some CI changes
eritbh May 29, 2022
d017046
hopefully this works
eritbh May 29, 2022
8ccf65d
aaa
eritbh May 29, 2022
6af3463
still don't care about host keys
eritbh May 29, 2022
1a6582c
backend still needs to happen in the right folder
eritbh May 29, 2022
57a4069
okay now it should work
eritbh May 29, 2022
3d54ed5
Merge branch 'main' into frontend
eritbh May 29, 2022
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
25 changes: 16 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,26 @@ jobs:
target_url: https://survey.r-anime.moe
environment: production

- name: Pull latest changes to server
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3

- name: Apply frontend updates
run: |
cd frontend
npm ci
NODE_ENV=production npm run build
rsync -e "ssh -o StrictHostKeyChecking=no" -avz dist [email protected]:/home/surveysite/surveysite/frontend

- name: Apply backend updates
run: |
ssh -o StrictHostKeyChecking=no [email protected] /bin/bash << 'EOF'
# Causes this script to exit early and report a failure if any command errors
set -e

# Checkout latest changes from our repo, overwriting any local changes
cd "$HOME/surveysite"
git fetch --all
git reset --hard origin/main

cd /home/surveysite/surveysite

# Use our virtualenv
source .venv/bin/activate
Expand All @@ -43,9 +53,6 @@ jobs:
# Run migrations, pulling environment variables from the .env file
eval $(cat .env) python manage.py migrate

# Compile static Sass files
eval $(cat .env) python manage.py sass survey/static/survey/scss/ survey/static/survey/css/

# Collect all static files into STATIC_ROOT
eval $(cat .env) python manage.py collectstatic --noinput

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ GitHub.sublime-settings

# Visual Studio Code #
.vscode/*
.history
.history
57 changes: 38 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,46 @@
# [/r/anime Seasonal Surveys Website](https://survey.r-anime.moe/) [![deploy status](https://img.shields.io/github/deployments/r-anime/surveysite/production?label=deploy)](https://github.com/r-anime/surveysite/deployments/activity_log?environment=production)

Website for carrying out seasonal surveys for [/r/anime](https://www.reddit.com/r/anime/). Built with [Django](https://www.djangoproject.com/) as the backend and [BootstrapVue](https://bootstrap-vue.org/) (Bootstrap and embedded Vue.js) on the frontend.

## Features

* Survey form and auto-generated results pages.
* Takes into account anime removed or added during an ongoing survey.
* Reddit authentication.
* Admin page for editing the database.
Website for carrying out seasonal surveys for [/r/anime](https://www.reddit.com/r/anime/). Built with [Django](https://www.djangoproject.com/) as the backend and [Vue.js](https://vuejs.org/) & [Bootstrap](https://getbootstrap.com/) on the frontend.

## Requirements

Python 3.6+, and all dependencies in `requirements.txt`.
* Python 3.9+.
* Node.js v14+.
* For development, a global install of [Vue CLI (`@vue/cli`)](https://cli.vuejs.org/) v5 may be useful.

## Setup

* Add the following environment variables:
* `WEBSITE_SECRET` should be a strong, secure [secret key](https://docs.djangoproject.com/en/3.1/ref/settings/#secret-key) for Django.
* `WEBSITE_REDDIT_OAUTH_CLIENT_ID` should be the client ID of the Reddit OAuth app.
* `WEBSITE_REDDIT_OAUTH_SECRET` should be the secret of the Reddit OAuth app.
* `WEBSITE_DEBUG` should be set to something to enable debug mode.
* `WEBSITE_ALLOWED_HOSTS` should be [a list of host/domain names](https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-ALLOWED_HOSTS) Django should serve, seperated by semicolons (`;`). This list is optional if debug mode is enabled.
* `WEBSITE_USE_HTTPS` should be set to something if the application is hosted via HTTPS. This will enable an additional session security option, and OAuth redirect URIs will use HTTPS as well.
* Create the website's database: `python manage.py migrate`.
* Add your host/domain name(s) to the `django_site` table of the generated database.
* Create a superuser for the website: `python manage.py createsuperuser`.
This project consists of a Django back-end in the root folder, and a static Vue.js front-end in `./frontend/` - the front-end will be built and served as static files by Django.

### Environment Variables
* `WEBSITE_SECRET`: a strong, secure [secret key](https://docs.djangoproject.com/en/3.2/ref/settings/#secret-key) for Django.
* `WEBSITE_REDDIT_OAUTH_CLIENT_ID`: the client ID of the Reddit OAuth app.
* `WEBSITE_REDDIT_OAUTH_SECRET`: the secret of the Reddit OAuth app.
* `WEBSITE_DEBUG`: presence of this variable enables debug mode.
* `WEBSITE_ALLOWED_HOSTS`: [a list of host/domain names](https://docs.djangoproject.com/en/3.2/ref/settings/#std:setting-ALLOWED_HOSTS) Django should serve, seperated by semicolons (`;`). This list is optional if debug mode is enabled.
* `WEBSITE_USE_HTTPS`: presence of this indicates whether the application is hosted via HTTPS.

### Running the Project

Before either debugging or deploying the project:

* Create Django's database: `python manage.py migrate`.
* Add host/domain name(s) to the `django_site` table of the generated database. This includes `localhost:8000`/`127.0.0.1:8000`!
* Create a superuser for Django: `python manage.py createsuperuser`.

#### Debugging

* Set the environment variables.
* In `./frontend/`, run `npm run debug`. This will build the front-end to `./frontend/dist/` and watch the source code for changes.
* In the root folder, run `python manage.py runserver` to start up the Django server.
* By default, Django will serve everything at `localhost:8000`.

#### Deploying

Install all packages, and:

* Build `./frontend`: `npm run build`
* Run Django migrations: `python manage.py migrate`
* Let Django collect all static files (including the frontend): `python manage.py collectstatic --noinput`

Use your favorite server to [deploy the Django application](https://docs.djangoproject.com/en/3.2/howto/deployment/).
3 changes: 3 additions & 0 deletions frontend/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead
31 changes: 31 additions & 0 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/typescript/recommended'
],
parserOptions: {
ecmaVersion: 2020,
parser: '@typescript-eslint/parser'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/no-multiple-template-root': 'off'
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
mocha: true
}
}
]
}
25 changes: 25 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.DS_Store
node_modules
/dist


/tests/e2e/logs/

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
1 change: 1 addition & 0 deletions frontend/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.14.2
34 changes: 34 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# surveysite-frontend

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Run your unit tests
```
npm run test:unit
```

### Run your end-to-end tests
```
npm run test:e2e
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
5 changes: 5 additions & 0 deletions frontend/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
Loading