/HiberAPI

The API used by HiberFile to upload and download files.

Primary LanguageTypeScriptGNU Affero General Public License v3.0AGPL-3.0

HiberFile

GitHub Stars GPL-3.0 License Top language Follow @HiberFile on Twitter

Website ยท Quick start

The API of HiberFile.

๐Ÿš€ Quick start

Prerequisites

Getting Started

  1. Clone the repository:

    git clone https://github.com/hiberfile/hiberapi.git
  2. Install dependancies:

    cd hiberapi && npm install
  3. Generate and download your AWS credentials. You must have a file credentials in the .aws directory.

    You can follow this official guide.

  4. Create the .env file and edit it (here is an example):

    cp .env.example .env
    nano .env

    Note that you can use your favorite editor instead of nano, like vi or mcedit.

  5. Use your own endpoint of the S3.

    nano src/utils/s3.ts

    Then, on the 19th line, edit the endpoint.

  6. Launch the dev server (optional):

    npm run dev
  7. Deploy the server:

    npm run build && npm run start

๐Ÿค Contributing

If you are interested in helping contribute to HiberFile, feel free to open a pull request.

Code Contributors

contributors

๐Ÿ“ License

ยฉ 2021 HiberFile Team

This project is GPL-3.0 licensed.