Skip to content

lidofinance/lido-cms

Repository files navigation

CMS

Local development (files are saved locally)

  • Install dependencies with yarn.
  • To add content, copy the folders (of the desired projects) from the content repository to the root. (optional)
  • Run yarn proxy from the root directory of the above repository.
  • Run dev server with yarn dev.

Local development (files are saved on github)

  • Install dependencies with yarn.
  • Setup .env file with cp .env.sample .env.
    • BASE_URL should be http://localhost:3000 for local development.
    • GITHUB_REPO should be any personal repo outside of lidofinance org.
    • GITHUB_BRANCH should be main or any other perfered branch of your repo.
    • To get OAUTH_CLIENT_ID and OAUTH_CLIENT_SECRET you need to create GitHub App.
      • Visit https://github.com/settings/apps.
      • Create a new GitHub App.
      • During creation process, provide it with Read and Write permissions for Content and Pull Requests.
      • Install it to your personal repo (one of the tabs on the left).
      • Copy ClientID and ClientSecret and paste into .env file (on the first tab).
  • Run dev server with yarn dev.