
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NISTβs handling of the National Vulnerability Database.
@muhammadisa226/craftjs
Advanced tools
A starter kit backend framework powered by Express, TypeScript, EJS Engine, and Prisma β designed for rapid development, simplicity, and scalability.
A starter kit backend framework powered by Express, TypeScript, EJS Engine, and Prisma β designed for rapid development, simplicity, and scalability.
craft
) for project automationπ‘ Note: EJS View Engine is included but disabled by default. To enable it: Open src/application/web.ts and uncomment the following lines:
import expressLayouts from "express-ejs-layouts";
import path from "path";
web.set("view engine", "ejs");
web.set("views", path.join(\_\_dirname, "..", "views"));
web.use(expressLayouts);
web.set("layout", "layouts/main");
Then, go to src/routes/main-route.ts and uncomment this:
mainRouter.get("/", (req, res) => {
res.render("index", { title: "Home Page" });
});
npx @muhammadisa226/craftjs@latest
OR
npx @muhammadisa226/craftjs@latest my-app
cd my-app
npm install
node craft key:generate
node craft generate
node craft db:migrate
node craft dev
node craft help
my-app/
βββ craft/
βββ src/
β βββ apidocs/
β βββ config/
β βββ controllers/
β βββ middleware/
β βββ repositories/
β βββ dtos/
β βββ routes/
β βββ services/
β βββ types/
β βββ utils/
β βββ validations/
β βββ main.ts
βββ test/
βββ logs/
βββ .env
βββ .env.example
βββ prisma/
βββ .gitignore
βββ babel.config.json
βββ craft.js
βββ nodemon.json
βββ package.json
βββ package-lock.json
βββ tsconfig.json
Command | Description |
---|---|
craft start | Start production server |
craft dev | Run in development mode |
craft build | Build for production |
craft test | Run Jest tests |
craft db:generate | Generate Prisma client |
craft db:migrate | Run Prisma migrations |
craft db:reset | Run Prisma migrations refresh |
craft key:generate | Generate secret keys |
craft make:controller | Make Controller File |
craft make:command | Make Command File |
craft make:middleware | Make Middleware File |
craft make:repository | Make repository File |
craft make:dto | Make Data Transfer Object File |
craft make:route | Make Route File |
craft make:service | Make Service File |
craft make:test | Make Test case |
craft make:utils | Make Utils |
craft make:validation | Make Validation |
craft make:view | Make View |
Made by @muhammadisa-n
FAQs
A starter kit backend framework powered by Express, TypeScript, EJS Engine, and Prisma β designed for rapid development, simplicity, and scalability.
The npm package @muhammadisa226/craftjs receives a total of 190 weekly downloads. As such, @muhammadisa226/craftjs popularity was classified as not popular.
We found that @muhammadisa226/craftjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NISTβs handling of the National Vulnerability Database.
Research
Security News
Socketβs Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.