Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhaeguard/juno
a tiny http file server
https://github.com/rhaeguard/juno
file-server golang http-file-server
Last synced: about 2 months ago
JSON representation
a tiny http file server
- Host: GitHub
- URL: https://github.com/rhaeguard/juno
- Owner: rhaeguard
- Created: 2020-08-14T23:42:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-17T20:27:57.000Z (over 4 years ago)
- Last Synced: 2023-05-20T10:29:21.964Z (over 1 year ago)
- Topics: file-server, golang, http-file-server
- Language: Go
- Homepage:
- Size: 56.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Juno is a very tiny and simple to use http file server
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/ec36623bbeee4ed5a51b0758bc4dc215)](https://www.codacy.com/manual/MensurOwary/juno?utm_source=github.com&utm_medium=referral&utm_content=MensurOwary/juno&utm_campaign=Badge_Grade)
## Endpoints
| method | endpoint | does |
| :----- | :--------------------- | :-------------------------------------------------------------------- |
| POST | /v1/auth/login | returns access token |
| POST | /v1/auth/refresh_token | refreshes the access token |
| POST | /v1/auth/logout | invalidates the token |
| GET | /v1/resources | retrieves all the resources related to the application |
| POST | /v1/resources/upload | uploads the given file |
| GET | /v1/resources/:id | retrieves a single resource information or downloads that file |
| DELETE | /v1/resources/:id | deletes all the information related to the resource with the given id |## Launching
Run the following command to launch the application
```shell script
docker-compose up
```## Testing
To run the tests issue the following command
```shell script
docker-compose -f docker-compose-test.yml up
```