The Drawsy server exposes a REST API which the Drawsy client can use to save and load drawings for its gallery. The drawings are stored in a MongoDB database.
The Drawsy server is made with Express.js.
npm install- Copy the
.env.examplefile to a new.envfile. - Edit the
.envfile with the proper credentials for the MongoDB database.
npm startThis will start the server with hot-reload for development.
npm run start:prodThis will start the server without hot-reload, for use in production.
npm run build:checkThis will check that the TypeScript code can successfully compile for type-checking, but will not emit any compiler output.
# Build context needs to be the project's root directory
docker build -t drawsy/server -f Dockerfile ..This will build the Docker image which is used in production.
npm testnpm run coveragenpm run lintnpm run format