/app
/controllers (Controllers of the app)
/middlewares (Middlewares for the routes of the app)
/routes (Routes for Controllers of the app)
/service (Services for using in any Controller)
/entity (Models configuration for use)
/repository (Custom queries)
/config
/Router.ts (Config file for Routing)
/Database (DB configuration for use)
/Server.ts (Server configuration)
config.ts (Config file for the app)
tsconfig.json (File configuration typescript)
tslint.json (File configuration rules typescript)
Index.ts (Main file to start the app)
const LOCAL_CONFIGURATION = {
SERVER: "127.0.0.1",
PORT_DB: 3306,
DB: "test",
USER_DB: "root",
PASSWORD: "",
DIALECT: "mysql",
}
const PRODUCTION_CONFIGURATION = {
SERVER: process.env.SERVER || 'localhost',
DB: process.env.DB || "prod",
PORT_DB: process.env.PORT_DB || 3306,
USER_DB: process.env.USER_DB || 'root',
PASSWORD: process.env.PASSWORD || '',
DIALECT: process.env.DIALECT || 'mysql',
}
export const config = {
SECRET: "HltH3R3",
PORT_APP: 1344,
DATABASE: process.env.NODE_ENV === 'PRODUCTION' ? PRODUCTION_CONFIGURATION : LOCAL_CONFIGURATION
}
When execute any of this commands the app start with clustering, creating many cluster apps depending of the numbers of CPU's your computer had.
npm run dev
npm test
npm start
$ claude mcp add Typescript-restful-starter \
-- python -m otcore.mcp_server <graph>