import { server } from "perk";
server({
rootDirectory: __dirname,
routes: {
directory: "./routes",
excludeRegex: ".*\\.test\\.ts$",
},
server: {
url: "https://api.mywebsite.com",
port: 3001,
cors: {},
},
})
.then(() => {
console.log(`Server started on port 3001`);
})
.catch((error: Error) => {
console.error("The server couldn't start up...");
console.error(error.message);
});
process.once("SIGUSR2", async function () {
process.kill(process.pid, "SIGUSR2");
});
-
Notifications
You must be signed in to change notification settings - Fork 31
A well documented set of tools for building node web applications.
alarner/perk
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A well documented set of tools for building node web applications.
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published