You should have python3 installed on your system and checked out the enigma repository locally.
- Ensure you have a valid
config.json
present locally.
The default config.json.sample should be sufficient to start.
You can then add module-specific configuration for the modules you want integrated with Enigma. For detailed instructions on configuration, follow this doc
- Add folder
db
in root folder of the repository. - Add a package
access_modules
insideAccess
.
Copy this file as __init__.py
of access_modules
- Add access modules inside
access_modules
to integrate them with Enigma. (Optional and not needed to get started)
Copy each access module folder that you want to support, ensuring directory hierarchy in the following manner:
- Access
|-- access_modules
|--|-- __init__.py
|--|-- custom_module_1
|--|--|-- __init__.py
|--|--|-- access.py
|--|-- custom_module_2
|--|--|-- __init__.py
|--|--|-- access.py
For detailed instructions on how to add modules, follow this doc
- Install all the requirements through requirements.txt and ensure dependencies for access modules are installed
pip3 install -r requirements.txt
- Run Migrate to create all the database tables.
python3 manage.py migrate
- Run the server
python3 manage.py runserver
Ensure that the 8000 port is free to use.
That's it! Enigma should be running locally on port 8000 http://localhost:8000
For first time user sign-in, follow this doc