graasp / graasp-app-excalidraw

GNU Affero General Public License v3.0
3 stars 0 forks source link
collaboration learning sketching

Graasp App Excalidraw

This repository hosts the code for Excalidraw's integration into the Graasp ecosystem.

Excalidraw is an open-source web drawing application. Try it directly with the original Excalidraw app!

<! -- ## Awesome! How does it work? -->

Development

Local setup

To work with Graasp apps locally, follow the official Graasp documentation.

To get started with this app, clone this repo. You will need to add a dotenv file .env.development.

VITE_PORT=3335 # The port on which you would like to serve the app.
VITE_API_HOST=localhost # The hostname (localhost for local dev)
VITE_MOCK_API=false # Mock the API by default (overriden by yarn dev:mock)
VITE_GRAASP_APP_KEY=82582612-92aa-408f-bfe9-0d202414a3b6 # The app key in your local Graasp instance.
VITE_VERSION=latest # The version of your app (not important for development)

Install the dependencies by running yarn:

yarn

And finally start the app. To serve it within your local Graasp instance:

yarn dev

And to serve it with a mocked API (see the documentation):

yarn dev:mock

You can find a lot of informations on the developer documentation of Excalidraw.

How to use

To use this app, you can either run it locally which will give you direct access to an excalidraw canvas or fit it inside a Graasp activity as it is already deployed. Excalidraw's documentation can be found here, and a description of the tools is available on canvas by clicking on the ? button.

Example

Below you can find a screenshot of the app inside the Graasp Builder view.

image

What's next?

For future versions, here is a list of features to be implemented and points to be optimized: