Deployed at https://vega-editor-backend.vercel.app/. Code is at https://github.com/vega/editor-backend.
-
Clone the repository.
$ git clone [email protected]:vega/editor-backend.git -
Install all dependencies.
$ npm install -
Put configurations in a
.envfile in the root directory.$ cp .env.sample .env -
Sample configuration of a
.envfile can be:# [@domoritz](https://github.com/domoritz) created this app for OAuth testing. # You may create [your own application](https://github.com/settings/developers). # GitHub OAuth app credentials GITHUB_CLIENT_ID=a901f0948b144d29fbdf GITHUB_CLIENT_SECRET=8a2269fd225321f19f2a19e7629e3ad63d94df68 # Session ID configuration SESSION_SECRET=secret -
Run the back-end server.
$ npm start -
Go to the home route (which usually is
http://localhost:3000/). Otherwise it will be mentioned in the console where the above command is run.
Go to https://vega.github.io/editor-backend/.
- Install ESLint plugin for automatically handling formatting of TypeScript files.
- Install Rewrap plugin to assist formatting of markdown files. Press Alt + Q to limit lines at 80 characters.
- The project uses ESLint to format the code. Run
npm run formatto fix formatting where it's possible to do so automatically.