Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.79 KB

Local Setup without Docker.md

File metadata and controls

53 lines (40 loc) · 1.79 KB

Setup for Local Development Without Docker

Pre-requisites

You should have python3 installed on your system and checked out the enigma repository locally.

Steps

  1. 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

  1. Add folder db in root folder of the repository.
  2. Add a package access_modules inside Access.

Copy this file as __init__.py of access_modules

  1. 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

  1. Install all the requirements through requirements.txt and ensure dependencies for access modules are installed
pip3 install -r requirements.txt
  1. Run Migrate to create all the database tables.
python3 manage.py migrate
  1. 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