Skip to content

Instantly share code, notes, and snippets.

@m1yag1
Last active March 20, 2020 15:02
Show Gist options
  • Save m1yag1/01b9e842c21a6d69d39ca8308e0e67c7 to your computer and use it in GitHub Desktop.
Save m1yag1/01b9e842c21a6d69d39ca8308e0e67c7 to your computer and use it in GitHub Desktop.
editoria development.env
export PUBSWEET_SECRET='asecretsecretnotreally'
export POSTGRES_USER='dev'
export POSTGRES_PASSWORD='secretpassword'
export POSTGRES_HOST='0.0.0.0'
export POSTGRES_DB='editoria_dev'
export POSTGRES_PORT='5432'
export SERVER_PORT='3000'
export INK_ENDPOINT='http://167.99.161.30:3000/'
export INK_USERNAME='admin@admin.com'
export INK_PASSWORD='abc12345'
export INK_EDITORIA_TYPESCRIPT='1'
export NODE_ENV='development'

Requirements

  • Node 12
  • NVM
  • Docker
  • Docker-compose
  • Yarn

Instructions

Note: Running the development environment and doing initial setup requires multiple terminal sessions. Make sure to take note in the instructions of when it says to open a new terminal session.

  • Clone down the editoria source code
git clone https://gitlab.coko.foundation/editoria/editoria-vanilla
  • Change to the new directory
cd editoria-vanilla
  • Download a copy of the development.env file
curl -o development.env https://gist.githubusercontent.com/m1yag1/01b9e842c21a6d69d39ca8308e0e67c7/raw/85963f34faaf78282359c70b041164e0135a7860/development.env
  • Make sure you have the proper version of node installed with nvm
nvm install 12
  • Ensure you are using the appropriate version of node
nvm use 12
  • Install all the dependencies
yarn install
  • Source the development.env file.
source development.env
  • Start up the database container.
yarn start:postgres
  • Open a new terminal session and source the development.env file.
source development.env
  • Setup the database
yarn setupdb
  • Follow the prompts to setup the admin user. Ensure the password is at a minimum 6 characters in length

Note: If you don't see prompts setting up groups or experience an error after the user is created you'll need to seed the db.

  • See note above Using the same terminal window seed the db.
yarn seed
  • In the same terminal session ensure you have sourced the development.env file
source development.env
  • Start up the editoria server
yarn server
  • Open a new terminal session and source the development.env file
source development.env
  • Start up the services
yarn start:services
  • Check http://localhost:3000 to see the editoria login page

  • Create a user by signing up for an account.

  • Login to the system using the account you created in the setupdb process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment