Backend for the NerFCFM project.
This is a basic implementation for the NerFCFM API, it does not consider many security settings. Use this only for testing.
- Django (REST Backend)
- Celery (Task Queue)
- Redis (Message Broker)
On a Linux Machine
-
Make sure to install Nerfstudio using conda
-
Clone this repository
-
Django setup
# virtual environment setup virtualenv .venv source .venv/bin/activate pip install -r requirements.txt # migrations python manage.py makemigrations api python manage.py migrate # load initial data python manage.py load_nerfs python manage.py load_data_types
-
Redis Broker (use screen or new terminal)
# Arch sudo pacman -S redis # Debian / Ubuntu sudo apt-get install redis # start redis server redis-server
-
Start Celery (use screen or new terminal)
celery -A nerfcfm.celery worker --loglevel=info
-
Create
.envfile at root directory# if you want to test with nerf studio, set this to False USE_TEST_SCRIPT = True # test script will use a random value between these two MAX_TIME_SCRIPT = 100 MIN_TIME_SCRIPT = 10
-
Run the API
python manage.py runserver 8000