Quick Start
1. Build
git clone --recursive https://github.com/lre66/jsrealm.git
cd jsrealm
make
2. Configure
Create a config directory with config.json:
mkdir myapp
echo '{"http": "0.0.0.0:8080"}' > myapp/config.json
3. Create App
Create app.js to handle requests:
// myapp/app.js
var app = new App();
app.get('/', (request) => {
return new Response("Hello, World!");
});
export default app;
4. Run
./build/jsrealm -c myapp
5. Test
curl http://localhost:8080/
Output: Hello, World!