Installation
This guide explains how to install and configure OchoCast locally.
Prerequisites
- Git installed
- Docker and Docker Compose
- Node.js (recommended: LTS)
- npm or yarn
1. Clone the project
Clone the repository from GitHub:
git clone <GITHUB_REPO_URL>
cd octocast-webapp
2. Start services with Docker
From the project root, run:
docker-compose up -d
This docker-compose.yml brings up the necessary services.
3. Keycloak configuration
Keycloak is used for user authentication.
- Go to the
localKeycloakfolder:
cd localKeycloak
cp .env.example .env
-
Open http://localhost:8080 in your browser to access Keycloak.
-
The local realm is usually imported automatically via Docker Compose, but no users are created by default.
Creating a user in Keycloak
- Open the Keycloak admin console.
- Select your realm from the dropdown.
- Click “Users”, then “Add User”.
- Fill in username, email, first name and last name.
- Click “Save”.
- In the “Credentials” tab, set a password for the user.
4. Backend configuration
- Go to the
backendfolder:
cd backend
cp .env.example .env
- Copy the
nest-backclient secret from Keycloak into theAUTH_SECRETenvironment variable.
5. Frontend configuration
- Ensure the database and Keycloak are configured.
- Go to the
frontendfolder:
cd frontend
cp .env.example .env
- Copy environment variables from
.env.exampleto.envand configure them as needed.
6. Start the application
After configuration, start the project.
Install dependencies
In the frontend folder run:
npm install
Start the frontend
npm start
You can also run the backend and frontend together from the project root.
Verification
- Keycloak should be available at http://localhost:8080.
- Backend should be accessible at
http://localhost:<BACKEND_PORT>. - Frontend should be accessible at
http://localhost:<FRONTEND_PORT>.
OchoCast is ready to use
If you encounter issues, verify environment variables and ensure all Docker services are up.