Compile and execute:
# install dependencies:
npm install
# transpile javascript:
npm run compile
# run server:
npm start
# compiles and reruns server on filesystem changes:
npm run develop
The source code is located in src
and split into client-code, server-code and shared code.
server/server.js
contains the implementation of the server- Json API is available via
/api/...
routes. - Routes for the web application:
/
is the home page./timeline/:userName
shows the timeline of the given user.
- Json API is available via
- The
client/
folder contains the client-side javascript app.main.jsx
is the entry point.components/app.jsx
is where the client-side routes are defined.
There's an incomplete application in the tutorial
branch, that you can
complete by adding the backend pieces to talk to Antidote.
The database state can be reset and initialized using a simple API call:
curl -d "" http://localhost:1337/api/clearChirps