Sample project using Python 3.8 and MongoDB without frameworks based in Hexagonal architecture design.
A Tasca is a typical Spanish bar. Like in a Tasca, you can talk (post messages), meet people (following), "remember" your words (see your posts) or listen the environment (read your wall with all your messages along with your follow users messages).
- Clone the repo
git clone https://github.com/jesuschm/tasca.git
- Export project path
export PYTHONPATH=[project-path]/tasca/ cd [project-path]/tasca/
- Docker compose
docker-compose up --build -d
- Create and activate the virtual environment (info)
- Install requirements
pip install -r requirements.txt
- Create users
python src/scripts/createuser.py [username]
Enter the tasca first executing the main file
python src/tasca.py
You have 4 commands:
- Post messages.
> [username] -> [message]
- Follow another user.
> [username] follow [username]
- Read your messages.
> [username]
- Read your wall.
> [username] wall
- Tests, tests and more tests (at least until the 80%)
- Actually you can follow yourself (it's ok you love yourself but if you follow yourself is like when you give a like to your photos).
Your Name - @jchaconmontero - jesuschaconmontero@gmail.com
Project Link: https://github.com/jesuschm/tasca