Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dscalzi/janus
- Owner: dscalzi
- License: mit
- Created: 2019-07-21T03:09:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-22T02:11:57.000Z (28 days ago)
- Last Synced: 2024-10-22T20:26:58.394Z (27 days ago)
- Topics: express, mock-server, typescript
- Language: JavaScript
- Homepage:
- Size: 228 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.