Skip to content

Latest commit

 

History

History

example-simple-api

Second API example

This application uses Express and Second to build a server-rendered Preact application.

Running the example

First, install the example:

git clone [email protected]:wildlyinaccurate/second.git
cd second/packages/example-simple-api
npm install

Then run the server:

npm start

Or run the server with logging enabled:

DEBUG=second:* npm start

Then open http://localhost:8082/events/wildlyinaccurate in a web browser. Change wildlyinaccurate to any GitHub username.