Callback-News.com is an online technology newspaper that gets its news through external newspapers.
Callback-News.com has the news updated daily so you do not miss your dose of tech.
The newspaper is managed by an admin panel in Python, gets the news automatically and has its frontend in NextJs (React).
- Website: https://api.callback-news.com/
- Documentation: https://www.notion.so/Callback-News-8f7835b5467b4ca89efe35607d9abad7
- Mockup: https://www.notion.so/670629e5706d445f8fe08c876ba33d63?v=7ff2443196594df298333cfdcb746970
- First, clone this repo with
git clone
. - Create enviroment file .env.dev hat satifies the emty values below:
DEBUG=1
SECRET_KEY=foo
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
SQL_ENGINE=django.db.backends.postgresql
SQL_DATABASE=callback_news
SQL_USER=admin
SQL_PASSWORD=890306
SQL_HOST=postgres
SQL_PORT=5432
DJANGO_SETTINGS_MODULE=api.settings.dev
BUCKET_NAME=bucket
GS_CREDENTIALS_FILE_LOCATION=
GS_PROJECT_ID=
EMAIL_HOST=
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_PORT=
EMAIL_USE_TLS=
- If you want to set your own values for pgadmin, change them in the docker.compose.yml, in the pgadmin section.
- To set minio server add
127.0.0.1 minio
to your /etc/hosts file or equivalent in your OS. - Enter to http://minio:9000
- Credentials are:
- MINIO_ACCESS_KEY: access_key
- MINIO_SECRET_KEY: secret_key
- Create bucket in Minio and name it
bucket
- Click on edit policy from the bucket.
7.then set prefix to *
and set to select read and write
- Build the container with
docker-compose build
(Make sure you have docker and docker compose installed in you machine) - Once docker image is installed, turn it on with
docker-compose up
. - Run migration of the models set with
docker-compose exec django python manage.py makemigrations
. - Then run
docker-compose exec django python manage.py migrate
to complete the migration process. - Set you user in django administration IDE with
docker-compose exec django python manage.py createsuperuser
- Set values and the go to localhost/8080/admin to access.
- To sing in the pgadmin IDE go to localhost/8000/admin and join with your credentials..
Development Environment
This project runs on http://localhost:8080 Production Environment
- Python
- Django
- PostgreSQL
- Erik Sanchez - eriksape
- David Behar - behagoras
- Iraida Mercedes - iraida07
- William Velazquez - WilliamVelazquez
- Gerardo Marquez - GerardoMarquezC
If you want to know about the insights click here!
Feel free to contribute to the project!