Check the docs
import Galleon from "galleonjs"
const ship = new Galleon()
const PORT = 3000 || process.env.PORT
ship.get("/", (server) => {
server.send("AHOY")
})
ship.listen(PORT, _ => console.log(`Server running at http://locahost:${PORT}`))
This is a attempt to make a ExpressJS clone without any package (PS: i used one)
- Use NodeJS default library
- Work with request and response handler
- Send different types of data through the web
- [ x ] Can setup a server
- [ x ] Can respond to GET and POST methods
- [ x ] Send multiple files such as
html
,jpeg
,css
,js
,json
- [ x ] has different functions to handle a application
It uses the node:http
library to create a server and through events can handle HTTP methods
Be sure to use Node >= v18.12.1
> npm i galleonjs@latest
PS: AHOY!