folder | content |
---|---|
src/assets |
Static content (images, media files) |
src/components |
Reusable page components |
src/content |
Markdown content for static pages |
src/locales |
Translation resources |
src/pages |
Actual pages of website (each page is one component, StaticPage is reused with different content). Pages are rendered inside App component (in router-view ) |
src/App.vue |
Main app component (renders router-view ) |
src/main.js |
Webpack entrypoint |
.env |
Configurable values (Page name and description) |
https://travis-ci.com/github/treker-mk/website
Every push to master
is automatically deployed (if build successfull) to https://covid-19.treker.mk
Create PR from a branch (in this repo, not fork) to master. Label PR with label deploy-preview
and wait few minutes. Deployment should be available at https://pr-NUM.treker.mk where NUM is number of your PR.
Only open PR with label deploy-preview
are deployed. When PR is closed or label removed, deployment is stopped.
- yarn
- node
- .net core https://dotnet.microsoft.com/download
- probably something I forgot
yarn install
yarn run serve
yarn run build
Not really that we have any tests
yarn run test
yarn run lint
- vue (framework) https://vuejs.org/v2/guide/
- vue-router (view routing) https://router.vuejs.org/
- vue-bootstrap (styled components) https://bootstrap-vue.js.org/
- webpack (bundler) https://webpack.js.org/concepts/