You might need some packages such as the Vue CLI, virtualenv
, pip
of course and many others. Handle any missing ones as you go along.
Depending on your setup, you might need to use python3
and pip3
instead of python
and pip
.
git clone https://github.com/sigtot/nvd-new.git
cd nvd-new
virtualenv venv -p
source venv/bin/activate
pip install django
pip install djangorestframework
pip install django-cors-headers
python manage.py migrate
cd frontend
npm install
source venv/bin/activate
python manage.py runserver
cd frontend
npm run dev
Creating:
python manage.py makemigrations
Applying:
python manage.py migrate
Login
curl -X POST http://127.0.0.1:8000/rest-auth/login/ -d "username=admin&password=1234"
Create a listing
curl -X POST http://127.0.0.1:8000/api/listing/ -d "name=test&company_name=test company" -H 'Authorization: Token c56ddd032e56280827fdf4c7c2d5ab338c1a1133'