Your goal is to implement one of Rise's interactive blocks (see this Rise course for more details).
At a minimum, your implementation should:
- populate your interactive block's configuration from the provided REST API (see
/server
) - use
react
for your UI components - persist your interactive block's UI state by extending the provided REST API
What you choose to implement from there is up to you. :)
- your interactive block implementation should live in the
/client
directory and have its ownpackage.json
,node_modules
, etc. - feel free to bootstrap your solution with create-react-app (or whatever tools you prefer)
- the beginnings of a REST API lives in
/server
and is reachable at http://localhost:5000- the REST API currently uses variables as a makeshift in-memory database
To get the REST API up and running on your dev machine:
cd server
yarn install
(ornpm install
)yarn start
(ornpm start
)
Be sure ports 5000 and 3000 are open.
cd server
yarn
yarn start
In a fresh Terminal window/tab:
cd client
yarn
yarn start
Visit http://localhost:3000 to view the app