Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jcamiel/hurl-express-tutorial
- Owner: jcamiel
- License: apache-2.0
- Created: 2023-07-28T11:33:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-29T16:04:12.000Z (2 months ago)
- Last Synced: 2024-11-01T10:42:34.197Z (10 days ago)
- Language: TypeScript
- Size: 3.77 MB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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