- Node 12
- NVM
- Docker
- Docker-compose
- Yarn
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.