Skip to content

4H-Darkmode/Fastify-Example-Structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastify Example Structure

A ready-to-use folder structure for building backend applications with Fastify. This project provides a clean, organized template to help you quickly start developing your Fastify-based API with best practices in mind.

Features

This structure includes pre-configured integrations for:

  • Fastify - Fast and low overhead web framework
  • CORS - Cross-Origin Resource Sharing support
  • Helmet - Security headers middleware
  • PostgreSQL - Database integration
  • bcrypt - Password hashing
  • dotenv - Environment variable management

Getting Started

Follow these steps to set up the project on your local machine:

Prerequisites

  • Node.js (v14 or higher recommended)
  • npm (comes with Node.js)

Installation

  1. Clone the repository

    git clone https://github.com/4H-Darkmode/Fastify-Example-Structure.git
  2. Navigate to the project directory

    cd Fastify-Example-Structure
  3. Install dependencies

    npm install
  4. Configure environment variables

    • Copy all files from the repository to your working directory
    • Create a .env file and configure your environment variables as needed
  5. Start developing!

    You're now ready to build your Fastify application using this structured template.

License

This project is open source and available for use in your own projects.

About

This is a ready-to-use folder structure for a backend application built with Fastify

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published