This is questions/form builder example based on the React tutorial.
There are several simple server implementations included. They all serve static files from public/
and handle requests to /api/questions
to fetch or add data. Start a server with Node:
npm install
node server.js
And visit http://localhost:3000/.
This project is using webpack to bundle javascript files.
webpack
or
npm build
You can change the port number by setting the $PORT
environment variable before invoking any of the scripts above, e.g.,
PORT=3001 node server.js