@awmottaz/grackle
v1.0.0
Published
A web server with file-based routing.
Readme
Grackle
A web server with file-based routing.
Install
npm install @awmottaz/grackleThis installs the grackle CLI app that you can run with npx grackle.
Usage
Here is the smallest Grackle app you can make: create a file at <projectRoot>/routes/+get.js with
the following contents:
export default function handle({ response }) {
response.send(200, "hello, world!");
}Run your server with NODE_ENV=development npx grackle server. Then you can make a request to your
server:
$ curl http://localhost:55401
hello, world!For many more details, take a look in the docs/ folder. Start with Routing.
