docs

Hefestos Framework Docs

Welcome! Hefestos is an MVC solution to develop your web application more easily and quickly. With a focus on productivity, Hefestos is splited in modules like authentication using jwt tokens or sessions, mail sending, periodic tasks and jobs, file upload to local driver or AWS S3 and much more. Hefestos was built on top of Bun, Typescript and Express.js.

Summary

Prerequisites:

Installation

You can create a new project using the command:

bun install -g create-hefestos-app
bunx create-hefestos-app

Command Scripts

Env

Create a .env file from .env.example.

See below an example of a complete .env, with database, mailer and amazon s3 variables to configure.

# Application
PORT = 3000
NODE_ENV=development
DRIVE_DISK=local
JWT_SECRET=secret
SESSION_SECRET=secret
COOKIE_SECRET=secret

# Database
DB_USER=<YOUR_DB_USER>
DB_PASS=<YOUR_DB_PASS>
DB_PORT=<YOUR_DB_PORT>
DB_NAME=<YOUR_DB_NAME>
DB_HOST=<YOUR_DB_HOST>

DB_URL=postgresql://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}

# Mailer
SMTP_HOST=<YOUR_SMTP_HOST>
SMTP_PORT=<YOUR_SMTP_PORT>
SMTP_USER=<YOUR_SMTP_USER>
SMTP_PASSWORD=<YOUR_SMTP_PASSWORD>
SMTP_SECURE=<IF_SHOULD_USE_SSL>

# Amazon S3
S3_KEY=<YOUR_S3_KEY>
S3_SECRET=<YOUR_S3_SECRET>
S3_BUCKET=<YOUR_S3_BUCKET>
S3_REGION=<YOUR_S3_REGION>
S3_ENDPOINT=https://s3.${S3_REGION}.amazonaws.com
S3_BUCKET_PATH=https://${S3_BUCKET}.s3.${S3_REGION}.amazonaws.com/projects

Author