Welcome, security engineer! Before you can start investigating security issues in DaBeastApp, you’ll need to set up your local environment. This guide will walk you through:
✅ Forking and cloning the repository
✅ Creating a feature branch for your work
✅ Setting up dependencies using Docker
✅ Running the application locally
Since you’ll be making changes and submitting a pull request (PR) later, you need your own copy of the DaBeastApp repository.
Once you’ve forked the repository, it’s time to clone it to your local machine.
git clone https://github.com/YOUR-GITHUB-USERNAME/DaBeastApp.git
cd DaBeastApp
To keep your work organized, create a feature branch before making any changes.
git checkout -b lets-git-sum
This branch will be used for your work in this module.
Ensure you have the following installed on your machine:
The application runs inside a Docker container, and its setup is defined in two key files:
FROM node:18-bullseye
RUN mkdir /usr/src/dabeastapp
RUN mkdir /tmp/extracted_files
COPY . /usr/src/dabeastapp
WORKDIR /usr/src/dabeastapp
RUN npm update
RUN npm install
EXPOSE 3001
EXPOSE 9229
ENTRYPOINT ["npm", "start"]
npm install
.npm start
.version: "3.8"
services:
dabeastapp:
build: .
container_name: dabeastapp
environment:
- DOCKER=1
- MONGO_URI=mongodb://dabeastapp-mongo:27017/express-todo
ports:
- "3001:3001"
- "9229:9229"
links:
- dabeastapp-mongo
depends_on:
dabeastapp-mongo:
condition: service_healthy
dabeastapp-mongo:
container_name: dabeastapp-mongo
image: mongo
ports:
- "27017:27017"
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
MONGO_URI
.Once everything is set up, start the application with:
docker-compose up --build
This will:
Once Docker is finished setting up, open your browser and go to:
You should see the DaBeastApp running! 🎉
Now that your environment is ready, you’ll start investigating DaBeastApp using Aikido Security to uncover vulnerabilities and secure the system. Keep your feature branch updated with your changes, as you’ll be submitting PRs throughout the workshop to earn your Certifier Badges. 🏆
🚀 Let’s go!