Welcome to the OB Editor project. This document provides instructions for setting up and running the application both locally and using Docker.
You can use the editor online at:
Clone the repo to your local directory
git clone https://github.com/Open-Orange-Button/Orange-Button-EditorNavigate to the OB Editor Code directory named "/Orange-Button-Editor"
Run pwd to confirm you are in the directory and use ls to ensure you can see all the files including the docker file.
pwd
lsTo run the OB Editor locally using Docker, follow these steps:
-
Ensure Docker is Installed: Make sure Docker is installed and running on your machine. You can download it from Docker's official website.
-
Build the Docker Image: Navigate to the root directory of your project and run the following command to build the Docker image:
-
Build and run the Docker Container: Start the container using Docker Compose at Port 3030:
docker build -t obeditor-local . docker run -d -p 3030:80 obeditor-local
OR using Docker Compose (detached mode with -d)
docker-compose up --build -d -
Access the Application: Open a web browser and go to
http://localhost:3030to access the OB Editor. -
Stop the Container: To stop the running container, use:
docker-compose down
-
View Logs: To view the logs of the running container, use:
docker-compose logs
By following these steps, you can run the OB Editor locally using Docker. If you encounter any issues, please refer to the Docker documentation or seek further assistance.
npm installnpm run servenpm run buildnpm run testnpm run lintSee the Configuration Reference.
This document is designed to help you quickly get started with the OB Editor, whether you're developing locally or deploying with Docker. For any additional questions or support, feel free to reach out to the project maintainers.