ten-zeros / geo-api

NodeJS geolocation tracker
0 stars 0 forks source link

Implement Typescript #17

Closed martiangirlie closed 4 years ago

martiangirlie commented 4 years ago
  1. Implements typescript packages and relevant package.json scripts.

    • npm start: has been modified to serve out of the build/ folder now, as well as run tsc beforehand
    • npm run build: compiles typescript files and drops them in the build/ folder
    • npm run dev: recompiles server on save. use this for local development. does not build JS files.
  2. Rewrites pre-existing JS files into TS.

  3. Did some Prettier formatting.

Closes #8 Closes #18

martiangirlie commented 4 years ago

Please pull this locally, run npm install, and see if everything works for you.