Project made with Django + SQLite + BeautifulSoup for RC Tech interview
Install docker-ce and docker-compose from each documentation
On the project folder run the following commands:
$ make config.env
to copy the file.env.example
to.env
$ make build
to build docker containers
Simply run the command $ make up
and voilà.
This command will start 1 service on your machine:
- Django server on http://0.0.0.0:8000
On the project folder:
- run the command
$ make test
or$ make test app=$(app_name)
. You may run the command$ make coverage
instead. - run the command
$ make flake8
Django Admin Site is enabled for the project on http://0.0.0.0:8000/admin.
The command $ make populate.superuser
may be used to create the superuser User(username='superuser', password='@Admin123')
.
The command $ make populate.articles
may be used to fetch and save new articles from https://www.tecmundo.com.br/.