Code Monkey home page Code Monkey logo

website's Introduction

covid19-web

Build Translation status

Structure

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)

Deployment

https://travis-ci.com/github/sledilnik/website

Every push to master is automatically deployed (if build successfull) to https://covid-19.sledilnik.org

Preview deployment

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.sledilnik.org 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.

Development

What you need

Project setup

yarn install

Compiles and hot-reloads for development

yarn run serve

Compiles and minifies for production

yarn run build

Run your tests

Not really that we have any tests

yarn run test

Lints and fixes files

yarn run lint

FSharpLint

FSharpLint is used to check the F# code. In order to use it, you need to run build.bat script, which will

  1. install FSharpLint locally (if it was not already installed),
  2. run it on the source code,
  3. run F# unit tests.

The configuration is stored in the fsharplint-config.json file. You can find more information on how to configure or suppress various rules here.

Using FSharpLint in Rider

If you use JetBrains Rider as your IDE, you can integrate FSharpLint into your workflow inside IDE by following these steps:

  1. Make sure you have FSharpLint installed (see the above section).
  2. Click File | Settings menu option.
  3. In the Settings window, find Tools/External Tools tree item.
  4. Press on the plus (+) button to add a new external tool.
  5. In the Edit Tool window, enter the following values:
    • Name: FSharpLint
    • Program: dotnet
    • Arguments: fsharplint --format msbuild lint -l fsharplint-config.json SloCovid19Website.sln
    • Advanced Options: check all checkboxes
    • Output filters: $FILE_PATH$\($LINE$\,$COLUMN$\,.*
  6. Press OK button to confirm.

Now you should have a new menu item under Tools | External Tools | FSharpLint.

Resources

website's People

Contributors

lukarenko avatar stefanb avatar breki avatar miaerbus avatar mitjapotocin avatar joahim avatar pkese avatar dependabot[bot] avatar vesterde avatar overlordtm avatar milotype avatar multicultivator avatar kesma01 avatar blonduos avatar sabinatamko avatar mkadunc avatar 3tw avatar grofzarkov avatar encalien avatar matejmeglic avatar luka-medic avatar b100w11 avatar weblate avatar themre avatar mihamarkic avatar tomazk avatar novakz avatar kovalevartem avatar orangesunny avatar trumpets avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.