Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jcamiel/hurl-express-tutorial

Tutorial for integration tests with Hurl on an Express website
https://github.com/jcamiel/hurl-express-tutorial

Last synced: 3 days ago
JSON representation

Tutorial for integration tests with Hurl on an Express website

Awesome Lists containing this project

README

        



Movies Box home page

# Movies Box, an Hurl Tutorial

"Movies Box" is a sample project to demonstrate the use of [Hurl].
Hurl is a CLI tool to run and test HTTP requests. Hurl is used to write integration tests for HTML site, REST APIs,
GraphQL APIs etc...

Hurl can be used with various frameworks; in this sample, "Movies Box" is developed using [Express], a web framework for
Node.js.

## Run Project

```shell
$ npm install
$ npm start
...
Create user username: bob78 email: [email protected]
Create user username: fab email: [email protected]
Listening on port 3000
```

You can create a new user, of play with an existing one like `user=fab`, `password=12345678`

## Docker Image

The latest version of "Movies Box" is published as a Docker image. To run it:

```shell
$ docker pull ghcr.io/jcamiel/hurl-express-tutorial:latest
$ docker run --name movies --rm --detach --publish 3000:3000 ghcr.io/jcamiel/hurl-express-tutorial:latest
```

[Hurl]: https://hurl.dev
[Express]: https://expressjs.com