Files
hsp-gdh/README.md
Lightemerald d93bfe333d Updated backend
- Added better anti DoS protection
- Added better security measures (HTTP headers, etc.)
- Added TLS support
- Added support for configurable rate limiting
- Added default 404 and error handling
- Updated proxy settings
- Updated env naming
2024-03-31 20:50:58 +02:00

876 B

HSP-GDH (API)

Short description of your project.

Table of Contents

Installation

  1. Install bun.
  2. Clone the repository.
  3. Install the dependencies by running the following command:
    bun install
    
  4. Copy .env.sample as .env
    cp .env.sample .env
    
  5. (Optional) Setup SSL/TLS certs
    1. Create Certificate
    openssl req -newkey rsa:2048 -nodes -keyout certs/domain.key -x509 -days 365 -out certs/domain.crt -subj "/C=FR/L=Paris/O=HSP-GDH/CN=localhost"
    
    1. Enable HTTPS in .env

Usage

  1. Start the application by running the following command:
    bun index.js
    
  2. Open your browser and navigate to http(s)://localhost:{port}.