Skip to content

Commit

Permalink
add README.md and .env.example
Browse files Browse the repository at this point in the history
  • Loading branch information
jprusik committed Nov 10, 2023
1 parent ec97d3b commit 36a8ead
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Let's Test the Web!

Test the Web enables anyone to quickly test common browser interactions on the web with mock interfaces.

## Requirements

- [npm](https://www.npmjs.com/) and/or [Docker](https://www.docker.com/)

## Quick-start

- clone the repo to your desired environment
- build and run:
- with Node/npm:
- `npm ci && npm run build:watch`
- with Docker:
- `docker build -f Dockerfile . -t test-the-web:dev`
- `docker run -d -p 443:443 -p 80:80 test-the-web:dev`
- go to `http://localhost`
- start testing!

## That, but with more options

Optionally, you can change some configurations by creating a dotfile named `.env` in the `/api` directory (see `.env.example` for details). All the other usual configuration options around Node.js, Docker, [Express](https://expressjs.com/), [Docusaurus](https://docusaurus.io/), etc. apply.

## SSL / Self-signed certificates

The express server will attempt to find and use provided cert and key files (by default, named `ssl.crt` and `ssl.key` respectively) located in the `/api` directory. If it cannot find any, it will run the HTTP server only (still allowing for easy placement behind an SSL proxy if desired).
5 changes: 5 additions & 0 deletions api/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SSL_CERT=ssl.crt
SSL_KEY=ssl.key
SERVE_PORT=443
SERVE_INSECURE_PORT=80
STATIC_FILES_DIR=client/build

0 comments on commit 36a8ead

Please sign in to comment.