An open API service indexing awesome lists of open source software.

https://github.com/fiddlerwoaroof/simple-node-flow

A simple website hosted on NodeJS that's written with type annotations for Flow
https://github.com/fiddlerwoaroof/simple-node-flow

Last synced: 21 days ago
JSON representation

A simple website hosted on NodeJS that's written with type annotations for Flow

Awesome Lists containing this project

README

          

# A Simple Node Website with Static Types and 100% Test Coverage

This is a very simple website written in Javascript with type annotations for Facebook's Flow typechecker.
A goal of this project is to have 100% test coverage and a demonstration of dependency injection in a
Javascript server-side application.

## Installation and running.

- Clone this git repository: `git clone https://github.com/fiddlerwoaroof/simple-node-flow.git`
- Install dependencies: either `npm install` or `yarn`
- Run the tests: either `npm run test` or `yarn run test`
- Run the server: either `npm run serve` or `yarn run serve`
- Navigate to http://localhost:9405/hello?target=world or http://localhost:9405/length?target=world