Skip to content

rodrigondec/rctech

Repository files navigation

RC Tech Django project

Project made with Django + SQLite + BeautifulSoup for RC Tech interview

CircleCI Codacy BadgeCode Codacy BadgeCoverage License

Install

Docker + docker-compose

Install docker-ce and docker-compose from each documentation

Setting up

On the project folder run the following commands:

  1. $ make config.env to copy the file .env.example to .env
  2. $ make build to build docker containers

Running the project

Simply run the command $ make up and voilà.

This command will start 1 service on your machine:

Tests

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

Administration

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').

Populating Articles

The command $ make populate.articles may be used to fetch and save new articles from https://www.tecmundo.com.br/.