Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dscalzi/janus

🚪 Create a mock server on localhost for testing. Super lightweight and easy to use.
https://github.com/dscalzi/janus

express mock-server typescript

Last synced: 27 days ago
JSON representation

🚪 Create a mock server on localhost for testing. Super lightweight and easy to use.

Awesome Lists containing this project

README

        

# Janus

Janus allows you to setup a simple file server for local testing.

### Requirements

* Node.js 18

## Usage

1. Clone the project
2. Create a `.env` file
- Add `SERVER_PORT={PORT}`
- Add `BASE_PATH={PATH}`
3. Run `npm start`

### Example

Your file server is located at C:/MockFileServer. There is one file at that location, LibraryFile.jar

```properties
SERVER_PORT=8080
BASE_PATH=C:/MockFileServer
```

Navigate to `localhost:8080/LibraryFile.jar` to download that file.

## Notes

Janus is intended for localhost testing ONLY. Do not use in a production environment.