Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        


juno logo

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
```