This repository provides a professional starter kit for backend development using Node.js. It includes a starter folder structure, global configurations for Prettier, and Nodemon to streamline your development workflow. The setup also includes environment variable management.
This repository is set up as a template. You can use it as a starting point for your own projects.
You can even customize or add things according to your needs but this is an example 90% professional industry use this folder structure for backend
/src
: Contains the main application code including controllers, models, routes, and services./config
: Configuration files for the application./migrations
: Database migration files./tests
: Unit and integration tests./scripts
: Scripts for various tasks (e.g., database seeding)./public
: Publicly accessible files & backup server in temp folder (e.g., static assets).
To use this repository as a template for your own project:
-
Click the "Use this template" button at the top of this repository page.
-
Choose a name for your new repository and select whether you want it to be public or private.
-
Click "Create repository from template."
-
Clone the repository:
git clone https://github.com/Hashir-Akbar/vanilla-backend-starter-js