UNPKG

backend-setup-tool

Version:

A powerful CLI tool to instantly scaffold a clean and scalable Node.js/Express.js backend for SQL or NoSQL projects.

13 lines (11 loc) 292 B
import { sequelize } from "../database/db.js"; export default async () => { await sequelize .authenticate() .then(() => { console.log("Database connected successfully."); }) .catch((err) => { console.error("Unable to connect to the database:", err); }); };