Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/davidchambers/fp-workshop

FP workshop presented at HolidayCheck in Munich on 2016-12-14
https://github.com/davidchambers/fp-workshop

Last synced: 30 days ago
JSON representation

FP workshop presented at HolidayCheck in Munich on 2016-12-14

Awesome Lists containing this project

README

        

# Functional programming workshop

1. Clone the repository:

```console
$ git clone https://github.com/davidchambers/fp-workshop.git && cd fp-workshop
```

2. Install dependencies:

```console
$ npm install
```

3. Start the server:

```console
$ node server.js
Server listening at http://127.0.0.1:12345
```

4. Check that the server is operational:

```console
$ curl http://127.0.0.1:12345/users/9999 # replace 12345 with the port number printed when the server started
{"id":"9999","username":"alice","address":{"city":"Munich","country":"Germany"}}
```

5. Check that the __v0__ tests pass (the __v1__ tests will fail):

```console
$ PORT=12345 npm test # replace 12345 with the port number printed when the server started
```