Skip to content

kerolloz/my-super-awesome-api

Repository files navigation

My Super Awesome API

Build and Lint

Warning

This app is used for demonstration purposes only.

This is the backend repository for my super awesome app. It's built using Bun and Fastify. It uses MongoDB for the database.
I mainly created it to demonstrate a full-stack app deployment. Here's the tutorial link.

Frontend repo 👉 kerolloz/my-super-awesome-app

Usage

cp .env.example .env  # Create a new .env file and fill in the required variables
bun i                 # Install required dependencies
bun dev               # Start the development server with reload on changes
bun run build         # Ensure TypeScript is happy :)

Services Used

Service URL Source Code
Image uploads imghippo.com src/services/ImageUploader.ts
Email sending mailersend.com src/mailer/base.mailer.ts

Docker

Before running the image, you must create a .env file with the same variables as above.

docker build -t my-super-awesome-api .
docker run -p 5000:5000 --env-file=.env -it --init --network=host my-super-awesome-api # use --network=host for local development