- For macOS(brew)
brew install docker docker-compose
- For windows/linux/macOS refer to https://docs.docker.com/get-docker/
https://github.com/abiosoft/colima
brew install colima
colima start
Clone the repo in local system
git clone https://github.com/browserstack/enigma.git
- copy config.json.sample to config.json
"https://<git-username>:<github-token>@github.com/browserstack/enigma-access-modules.git"
where github-token
is a pat token from https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
- For self-hosted celery
celery-broker-url="redis://localhost:6379/0" celery-result-backend-url="redis://localhost:6379/0"
- For self-hosted databases
celery-broker-url="redis://localhost:6379/0" celery-result-backend-url="db+mysql://root@localhost:3306/<name_of_db>"
"access_modules": {
....
"aws_access": {
"aws_accounts": [
{
"account": "<your-account>",
"access_key_id": "<access_key_id>",
"secret_access_key": "<secret_access_key>"
}
]
},
....
},
Add configuration for all access_module as here added for aws_access.
- Start the service
make dev
- Check logs with
make logs
- Create superuser (Admin) with:
# Access the container with:
docker exec -it dev bash
#In the container:
python manage.py createsuperuser
# Set email to admin email id and password to anything you want
- Enigma should be up and running on port 8000!
- Login at localhost:8000/admin
- Login here with your superuser credentials
-
Tests: If Web service is not running, the command will first load up the service and then run the tests.
make test
-
Linter: Docker should be running for linter tool:
docker exec dev make lint
For a deeper understanding on how to create and integrate new modules, user creation and permissions. Refer "How-to" guides