├── tweets ├── __init__.py ├── api │ ├── __init__.py │ ├── urls.py │ └── views.py ├── migrations │ ├── __init__.py │ ├── 0002_auto_20191215_2304.py │ ├── 0005_tweet_parent.py │ ├── 0006_auto_20200108_2040.py │ ├── 0001_initial.py │ ├── 0003_tweet_user.py │ └── 0004_auto_20191217_1953.py ├── apps.py ├── admin.py ├── forms.py ├── views.py ├── serializers.py ├── models.py └── tests.py ├── accounts ├── __init__.py ├── migrations │ └── __init__.py ├── models.py ├── admin.py ├── tests.py ├── apps.py └── views.py ├── profiles ├── __init__.py ├── api │ ├── __init__.py │ ├── urls.py │ └── views.py ├── migrations │ ├── __init__.py │ ├── 0001_initial.py │ └── 0002_auto_20200108_2100.py ├── apps.py ├── admin.py ├── urls.py ├── forms.py ├── models.py ├── serializers.py ├── views.py └── tests.py ├── tweetme2 ├── __init__.py ├── rest_api │ ├── __init__.py │ └── dev.py ├── wsgi.py ├── urls.py └── settings.py ├── templates ├── components │ ├── footer.html │ ├── form.html │ └── navbar.html ├── react │ ├── css.html │ ├── js.html │ └── base_embed.html ├── tweets │ ├── list.html │ └── detail.html ├── react_via_dj.html ├── pages │ ├── feed.html │ └── home.html ├── profiles │ ├── detail.html │ └── form.html ├── accounts │ └── auth.html ├── base.html └── react.html ├── db.sqlite3 ├── tweetme2-web ├── public │ ├── robots.txt │ ├── favicon.ico │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── index.html ├── src │ ├── lookup │ │ ├── index.js │ │ └── components.js │ ├── profiles │ │ ├── index.js │ │ ├── utils.js │ │ ├── lookup.js │ │ ├── components.js │ │ └── badge.js │ ├── setupTests.js │ ├── App.test.js │ ├── tweets │ │ ├── index.js │ │ ├── buttons.js │ │ ├── create.js │ │ ├── lookup.js │ │ ├── components.js │ │ ├── feed.js │ │ ├── list.js │ │ └── detail.js │ ├── index.css │ ├── App.css │ ├── App.js │ ├── index.js │ ├── logo.svg │ └── serviceWorker.js ├── package.json └── README.md ├── .vscode └── settings.json ├── tweetme.code-workspace ├── Pipfile ├── manage.py ├── todo.md ├── static ├── css │ ├── main.50519c1c.chunk.css │ └── main.50519c1c.chunk.css.map ├── js │ ├── 2.437034a0.chunk.js.LICENSE │ ├── runtime-main.76e46f0d.js │ ├── runtime-main.76e46f0d.js.map │ ├── main.f30308ad.chunk.js │ └── main.f30308ad.chunk.js.map └── media │ └── logo.5d5d9eef.svg ├── React-notes.md ├── .gitignore ├── Pipfile.lock └── Readme.md /tweets/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /accounts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /profiles/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tweetme2/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tweets/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /profiles/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /accounts/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /profiles/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/components/footer.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tweetme2/rest_api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tweets/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /accounts/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here. 4 | -------------------------------------------------------------------------------- /db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/Tweetme-2/HEAD/db.sqlite3 -------------------------------------------------------------------------------- /accounts/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /accounts/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /templates/react/css.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tweetme2-web/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | -------------------------------------------------------------------------------- /tweetme2-web/src/lookup/index.js: -------------------------------------------------------------------------------- 1 | import {backendLookup} from './components' 2 | 3 | export { 4 | backendLookup 5 | } -------------------------------------------------------------------------------- /tweets/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class TweetsConfig(AppConfig): 5 | name = 'tweets' 6 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "python.pythonPath": "/Users/cfe/.local/share/virtualenvs/tweetme2-LFH35Wvl/bin/python" 3 | } -------------------------------------------------------------------------------- /accounts/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class AccountsConfig(AppConfig): 5 | name = 'accounts' 6 | -------------------------------------------------------------------------------- /profiles/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class ProfilesConfig(AppConfig): 5 | name = 'profiles' 6 | -------------------------------------------------------------------------------- /profiles/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | from .models import Profile 4 | 5 | 6 | admin.site.register(Profile) -------------------------------------------------------------------------------- /tweetme2-web/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/Tweetme-2/HEAD/tweetme2-web/public/favicon.ico -------------------------------------------------------------------------------- /tweetme2-web/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/Tweetme-2/HEAD/tweetme2-web/public/logo192.png -------------------------------------------------------------------------------- /tweetme2-web/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/Tweetme-2/HEAD/tweetme2-web/public/logo512.png -------------------------------------------------------------------------------- /templates/react/js.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /templates/tweets/list.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block content %} 4 | 5 |
6 | 7 | {% endblock content %} -------------------------------------------------------------------------------- /templates/react_via_dj.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block content %} 4 | 5 | 6 | 7 | {% endblock content %} -------------------------------------------------------------------------------- /tweetme.code-workspace: -------------------------------------------------------------------------------- 1 | { 2 | "folders": [ 3 | { 4 | "path": "." 5 | } 6 | ], 7 | "settings": { 8 | "python.pythonPath": "/Users/cfe/.local/share/virtualenvs/tweetme2-LFH35Wvl/bin/python" 9 | } 10 | } -------------------------------------------------------------------------------- /templates/components/form.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/tweets/detail.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block content %} 4 | 8 | 9 | {% endblock content %} -------------------------------------------------------------------------------- /tweetme2-web/src/profiles/index.js: -------------------------------------------------------------------------------- 1 | import {UserPicture, UserDisplay, UserLink} from './components' 2 | import {ProfileBadgeComponent} from './badge' 3 | export { 4 | ProfileBadgeComponent, 5 | UserPicture, 6 | UserDisplay, UserLink 7 | } -------------------------------------------------------------------------------- /tweetme2-web/src/profiles/utils.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import numeral from 'numeral' 3 | 4 | 5 | export function DisplayCount(props) { 6 | return {numeral(props.children).format("0a")} 7 | } 8 | -------------------------------------------------------------------------------- /profiles/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | 3 | 4 | from .views import profile_detail_view, profile_update_view 5 | 6 | urlpatterns = [ 7 | path('edit', profile_update_view), 8 | path('{{ description }}
10 | {% endif %} 11 | {% include "components/form.html" with form=form btn_label=btn_label %} 12 | 13 |{{ description }}
10 | {% endif %} 11 | {% include "components/form.html" with form=form btn_label=btn_label %} 12 | 13 |
15 | Edit src/App.js and save to reload.
16 |
{user.location}
24 |{user.bio}
25 | 26 |
53 |
{tweet.content}
56 | 57 |{user.location}
\n{user.bio}
\n \n\n
{tweet.content}
\n \n\n Edit src/App.js and save to reload.\n