Make user app available in docker container
and delete synk from dependencies
This commit is contained in:
parent
cdec344a4f
commit
bb5edceca3
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
|||
node_modules
|
19
README.md
19
README.md
|
@ -1,25 +1,11 @@
|
|||
# CANDYMAT
|
||||
|
||||
A Vue.js powered, progressive web voting application for Candidates. Candymat is hosted on _Netlify_ and uses the **Netlify CMS** for easier collaboration.
|
||||
A Vue.js powered, progressive web voting application for upcoming internal elections of Bündnis90/Die Grünen. Candymat is hosted as a service of netzbegruenung e.V.
|
||||
|
||||
## Calculation Model
|
||||
|
||||
The calculation model for voting has been defined by the German Federal Agency for Civic Education _(Bundeszentrale für politische Bildung)_. A good overview can be found in this PDF: [`resources/Rechenmodell des Wahl-O-Mat.pdf`](resources/Rechenmodell%20des%20Wahl-O-Mat.pdf).
|
||||
|
||||
## Embedding Euromat
|
||||
|
||||
It's possible to embed Euromat via an iframe and setting query parameters:
|
||||
|
||||
```html
|
||||
<iframe
|
||||
id="candymat"
|
||||
title="Candymat"
|
||||
width="500"
|
||||
height="300"
|
||||
src="https://candymat.info/de/theses?embedded=iframe">
|
||||
</iframe>
|
||||
```
|
||||
|
||||
## ⌨️ Development
|
||||
|
||||
This is a Vue.js progressive web application, developed with [`@vue/cli`](https://github.com/vuejs/vue-cli).
|
||||
|
@ -33,3 +19,6 @@ This is a Vue.js progressive web application, developed with [`@vue/cli`](https:
|
|||
| `npm run lint` | Runs `standard` over all `.js` and `.vue` files |
|
||||
| `npm run svg` | Creates all SVG files used in the application |
|
||||
| `npm run admin` | Creates `config.yml` for Netlify CMS admin UI |
|
||||
|
||||
## Props
|
||||
This user app is based on source code of EUROMAT targeted at european elections.
|
||||
|
|
19
dev.Dockerfile
Normal file
19
dev.Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM node:13.7.0
|
||||
|
||||
ENV CONTAINER_PATH /var/www/docker-vue
|
||||
|
||||
WORKDIR $CONTAINER_PATH
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY postcss.config.js babel.config.js .eslintrc.js ./
|
||||
COPY public ./public
|
||||
COPY resources ./resources
|
||||
COPY bin ./bin
|
||||
COPY src ./src
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["npm", "run", "serve"]
|
12255
package-lock.json
generated
12255
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -9,9 +9,7 @@
|
|||
"test:unit": "vue-cli-service test:unit",
|
||||
"svg": "vsvg -s ./src/assets/svg -t ./src/assets/icons",
|
||||
"admin": "node bin/admin-yml",
|
||||
"data": "node bin/xlsx-data",
|
||||
"snyk-protect": "snyk protect",
|
||||
"prepare": "npm run snyk-protect"
|
||||
"data": "node bin/xlsx-data"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sentry/browser": "^5.3.0",
|
||||
|
@ -72,6 +70,5 @@
|
|||
"npm run admin",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"snyk": true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue