Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
add nodemon for hot reloading while developing backend
Browse files Browse the repository at this point in the history
  • Loading branch information
fossecode committed Mar 22, 2020
1 parent 595ef30 commit 8b5aa71
Show file tree
Hide file tree
Showing 5 changed files with 458 additions and 23 deletions.
25 changes: 16 additions & 9 deletions README.md
@@ -1,27 +1,34 @@
# Coronastatus

> Report your health status to get a better overview of COVID-19 in your country (currently available in Norway & The Netherlands)
## What is this?

We don't know how many people have COVID-19. So we made a website where people can self-report symptoms. We plot the submissions on a map and show graphs with trends.

### Currently available in
* 🇳🇴 Norway: https://coronastatus.no
* 🇳🇱 The Netherlands: https://coronastatus.nl
* ... want one for your country? Join our community: https://t.me/onzecorona

- 🇳🇴 Norway: https://coronastatus.no
- 🇳🇱 The Netherlands: https://coronastatus.nl
- ... want one for your country? Join our community: https://t.me/onzecorona

## Why?

The government is working on this, but they're too slow in getting something out fast.

Norwegian article that inspired us to build this:
https://www.aftenposten.no/meninger/debatt/i/P9ALzX/selvrapporteringssystem-for-overvaaking-av-korona-maa-paa-plass-naa-petter-bae-brandtzaeg

## Who's behind this?

A bunch of developers from around the world that wanted to help out. This is not an official website from the health services.

## Mentions in the media

- https://www.tu.no/artikler/utviklere-om-korona-register-vi-kastet-oss-rundt-og-laget-dette/487568

## How can I contribute?

Join our Telegram group chat here: https://t.me/onzecorona or reach out on kontakt@bustbyte.no

Click on "Issues" in the menu above to see what we need help with.
Expand All @@ -33,26 +40,26 @@ Download and install [nodejs](https://nodejs.org),

1. Clone the repository

`git clone https://github.com/BustByte/coronastatus`
`git clone https://github.com/BustByte/coronastatus`

2. Move into the newly cloned directory

`cd coronastatus`
`cd coronastatus`

3. Install dependencies with our package manager

`yarn`
`yarn`

4. Create a configuration file from the example provided in this repo

`cp config.example.json config.json`
`cp config.example.json config.json`

5. Start the development webserver

`yarn start`
`yarn dev`

6. Open your browser and navigate to http://localhost:7272/

7. Before you create a pull request run the linter. Warnings are ok, but errors should be fixed.

`yarn lint`
`yarn lint`
3 changes: 2 additions & 1 deletion app/locales/no.json
Expand Up @@ -7,5 +7,6 @@
"Something went wrong!": "Noe gikk galt!",
"Something must have gone wrong": "Her har det skjedd noe galt.",
"Send an e-mail to": "Send en mail til",
" if you can't get it to work.": " hvis du ikke finner løsningen på problemet."
" if you can't get it to work.": " hvis du ikke finner løsningen på problemet.",
"Share on": "Del på"
}
6 changes: 6 additions & 0 deletions nodemon.json
@@ -0,0 +1,6 @@
{
"watch": ["app"],
"ext": "ts, json",
"ignore": ["src/**/*.spec.ts"],
"exec": "ts-node ./app/server.ts"
}
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -4,6 +4,7 @@
"license": "MIT",
"scripts": {
"start": "ts-node app/server.ts",
"dev": "nodemon",
"test": "jest",
"lint": "eslint --ext .ts app/",
"lintfix": "eslint --ext .ts app/ --fix",
Expand Down Expand Up @@ -47,6 +48,7 @@
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^25.1.0",
"nodemon": "^2.0.2",
"prettier": "^1.19.1",
"ts-jest": "^25.2.1"
},
Expand Down

0 comments on commit 8b5aa71

Please sign in to comment.