/layer-editor

React konvajs library, to edit layers of cartoons

Primary LanguageJavaScriptMIT LicenseMIT

React application with Express server

This project was bootstrapped with Create React App. Then an Express server was added in the server directory. The server is proxied via the proxy key in package.json.

bugs

  • cannot save image if the url is from external source: tainted canvas
  • on reload stage, how to know the id of the text that's being edited? also need to add the text properties to this.state

Using this project

Clone the project, change into the directory and install the dependencies.

git clone https://github.com/philnash/react-express-starter.git
cd react-express-starter
npm install

Create a .env file for environment variables in your server.

You can start the server on its own with the command:

npm run server

Run the React application on its own with the command:

npm start

Run both applications together with the command:

npm run dev