Coding-blog / editor-frontend

Editorial Panel for coding.blog
https://coding-blog.github.io/editor-frontend/
MIT License
0 stars 0 forks source link

editor-frontend

This is the frontend of coding blog editor panel.

Requirements


Dev Setup

  1. clone and cd into the cloned folder:

    git clone git@github.com:Coding-blog/editor-frontend.git
    cd editor-frontend
  2. run backend on dev

👉 You can skip this if you want to connect to prod server or some other server

  1. install server SDK:
tyfon i --env dev

👉 For connecting to prod server, do this instead:

tyfon i --env prod
  1. install dependencies:
npm i
  1. run it:
npm start

its now accessible on http://localhost:3000.

👉 you need a key to authenticate. if you are connecting to dev server on your local, checkout step 5 of dev setup of the backend. if you are connecting to another server, ask the system owner of that server for an auth key.


Prod Setup:

This repo will automatically be deployed to GitHub Pages (gh-pages branch) whenever there is a commit to main.

👉 If you want to deploy somewhere else, setup dev, but connect to prod server:

tyfon i --env prod

then build stuff:

npm run build

and put dist/ folder on some CDN or static host.