platform
├── free_our_knowledge
│ ├── __init__.py
│ ├── settings
│ ├── resources
│ ├── urls.py
│ └── wsgi.py
├── docker
│ └── Dockerfile
│ └── docker-compose.yml
│ └── entrypoint.sh
├── manage.py
└── requirements.txt
- CLone the repository locally:
git clone [email protected]:FreeOurKnowledge/platform.git
- Create a new virtual environment and activate it:
python3 -m venv fok_env
source fok_env/bin/activate
- Install all of the dependencies:
pip install -r requirements.txt
- Generate the database tables:
python manage.py migrate --noinput
- Start the project:
python manage.py runserver
If everything works the platform should be available on http://127.0.0.1:8000/.
- Build the development image. From the project root:
sudo docker build . -f ./docker/Dockerfile -t fok_platform
sudo docker-compose -f ./docker/docker-compose.yml up --build -d
- Check the build is running properly
sudo docker ps
-
[Configure credentials]??
-
Open a browser to http://localhost:8080/ to view the application (if using Chromebook, go to http://penguin.termina.linux.test:8080/)