A simple boilerplate to get started with Drizzle ORM in Node.js
These instructions will help you set up the project on your local machine for development and testing purposes.
- Node.js (>= 18.20.x)
- npm (>= 10.x)
- Neon Database Account and Project https://neon.tech
-
Clone the repository:
git clone https://github.com/libyzxy0/node-boilerplate.git cd node-boilerplate
-
Install the dependencies:
yarn install
-
Create a
.env
file in the root directory and add your Neon Database Connection String:NEON_DATABASE_URL=your-neon-database-url JWT_SECRET_KEY=yoursupersecret
To start the application, run:
yarn run dev
NODE-BOILERPLATE/
│
├── src/
│ ├── controllers/
│ ├── db/
│ ├── errors/
│ ├── middlewares/
│ ├── routes/
│ ├── utils/
│ ├── bootstrap.ts
│ ├── index.ts
│
├── tests/
│ ├── unit/
│ └── version.test.ts
│
├── .env
├── .gitignore
├── drizzle.config.ts
├── env.template
├── eslint.config.mjs
├── package.json
├── README.md
├── tsconfig.json
└── yarn.lock
- Made with ☕ and 💙 by libyzxy0.