Twitter_Django
Project created under Linux Ubuntu 64-bit using Python 3.8, pip 20.1.1 and Django 3.0.7
Deployment (baremetal)
Install python3.8 and execute the commands:
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
Before starting. Please rename the file .env.default
to .env
, and set in it your Secret credentials.
(Twitter_Django/
also has a .env.default
file.)
Running the server:
$ python3 manage.py migrate
$ python3 manage.py createsuperuser
$ python3 manage.py test
$ python3 manage.py runserver
Open localhost:8000 in a browser.
Deployment (docker)
Install docker and docker-compose.
Perform the changes mentioned above related to .env.default
files.
Running the server:
$ docker-compose up -d
$ docker logs twitter-django -tf # logging
Open localhost:PORT in a browser. Where PORT
is the port set in root project .env
file.
Versioning
Version 1.5 - Current version
Version 5.0 (TBA) - Moderation algorithms
Author
Lucio Afonso
License
This project is licensed under the GPL License - see the LICENSE.md file for details
Acknowledgments
Tutorials: