Commit a04ac112 authored by Nikos Pappas's avatar Nikos Pappas
Browse files

second

parent c07de701
# Development
This is a guide on how to start developing. We assume a Linux environment. You need the following tools preinstalled:
- python 3.8+
## Configuration
All configuration values are loaded from the `.env`.
......@@ -11,6 +11,15 @@ The repository's stack is a django web application.
- `static` : CSS and JS
- `locale` : Translations
## Installation
In a folder of your choice run `sh install.sh`.
This will install python3 and make a virtual environment called `venv`. Then it will install all libraries used.
## Development
See dedicated file `Development.md` on how to start developing locally
After installing, run:
1. `python manage.py makemigrations && python manage.py migrate`
2. `python manage.py createsuperuser`: Enter credentials for a superuser.
3. `python manage.py runserver`
4. Enter `http://localhost:8000/admin` and login with the credentials you gave.
\ No newline at end of file
#!/usr/bin/env bash
# Installs
dpkg -s "python3-pip" &> /dev/null
if [ $? -nq 0 ]; then
sudo -u ${SUDO_USER} apt-get install -y python3-pip
fi
python3 -m venv myenv
source venv/bin/activate
PIP=$(which pip || which pip3)
${PIP} install -e .
asgiref @ file:///tmp/build/80754af9/asgiref_1625643473416/work
attrs==21.4.0
brotlipy==0.7.0
certifi==2021.10.8
cffi @ file:///opt/concourse/worker/volumes/live/976f8942-f51d-4f0e-7352-2a10f0820d0e/volume/cffi_1625814703974/work
charset-normalizer @ file:///tmp/build/80754af9/charset-normalizer_1630003229654/work
cryptography @ file:///opt/concourse/worker/volumes/live/a9ca20dd-e1fe-4ed3-754e-0db64082a5d2/volume/cryptography_1639414576087/work
defusedxml==0.7.1
diff-match-patch==20200713
Django @ file:///tmp/build/80754af9/django_1625585912945/work
django-environ==0.8.1
django-import-export==2.7.1
djangorestframework==3.13.1
drf-spectacular==0.21.1
et-xmlfile==1.1.0
idna @ file:///tmp/build/80754af9/idna_1637925883363/work
inflection==0.5.1
jsonschema==4.3.3
MarkupPy==1.14
odfpy==1.4.1
openpyxl==3.0.9
psycopg2 @ file:///opt/concourse/worker/volumes/live/7541fe58-2a45-4073-5d69-313e733fc729/volume/psycopg2_1612298592535/work
pycparser @ file:///tmp/build/80754af9/pycparser_1636541352034/work
pyOpenSSL @ file:///tmp/build/80754af9/pyopenssl_1635333100036/work
pyrsistent==0.18.0
PySocks @ file:///opt/concourse/worker/volumes/live/112288ac-9cb0-4e73-768b-13baf4ca6419/volume/pysocks_1605305820043/work
pytz==2021.3
PyYAML==6.0
requests @ file:///tmp/build/80754af9/requests_1629994808627/work
six @ file:///tmp/build/80754af9/six_1623709665295/work
sqlparse @ file:///tmp/build/80754af9/sqlparse_1602184451250/work
tablib==3.1.0
typing-extensions @ file:///tmp/build/80754af9/typing_extensions_1631814937681/work
uritemplate==4.1.1
urllib3==1.26.7
xlrd==2.0.1
xlwt==1.3.0
from setuptools import setup, find_packages
setup(
name='registry',
version='0.1.0',
description='A test project for Nation registry',
url="https://gitlab.grnet.gr/npappas/national-registry",
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
python_requires=">=3.9",
packages=find_packages(),
scripts=['manage.py'],
install_requires = [
"Django",
"django-environ",
"django-import-export",
"djangorestframework",
"drf-spectacular",
"requests",
"tablib",
],
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment