REPOSITORY OVERVIEWLive repository statistics
★ 7Stars
⑂ 7Forks
◯ 7Open issues
◉ 7Watchers
32/100
OPENREPOHUB HEALTH SIGNALLimited signals
A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
10 Community adoption25% weight
18 Maintenance state20% weight
40 License clarity10% weight
100 Project information10% weight
59 This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
README preview
hackernews-api
API (backend python) para o frontend do hackernews-clone
Setup
- criar virtualenv
pip install -r requirements-dev.txt
Rodar testes
make run_tests
OU
make db_test_up
pytest
make db_test_down
Rodar API
docker-compose up -d
flask db upgrade # 1a vez apenas
flask run
👉 http://localhost:5000/api/
👉 http://localhost:5000/api/news
Próximos passos
Adicionando uma notícia
flask shell
Python 3.8.10 (default, Sep 28 2021, 16:10:42)
from hackernews.ext.database import db
from hackernews.models.news import News
from hackernews.models.users import User
News.query.all()
[]
u = User(name="roger", username="rac", email="r@a.c")
db.session.add(u)
db.session.commit()
n = News(title="Teste", description="1o. teste", author_id=u.id)
db.session.add(n)
db.session.commit()
News.query.all()
[Teste]
ALGORITHMICALLY RELATEDSimilar Open-Source Projects
Selected from shared topics, language and repository description—not editorial ratings.
Code repository for a sample end-to-end project for a Movie Recommender System built on Python Flask as backend
41/100 healthActive repository
Jupyter NotebookGPL-3.0#api#cosine-similarity#flask#hacktoberfest
⑂ 1 forks◯ 0 issuesUpdated Oct 3, 2024