Skip to content

Commit

Permalink
first docker commit
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkovacev committed Mar 29, 2022
1 parent ea5553e commit 0363b03
Show file tree
Hide file tree
Showing 21 changed files with 193 additions and 57 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/.*
**/__pycache__/
venv
!.gitignore
File renamed without changes.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ version: '3.3'
services:
mongo:
image: mongo:4.2.5
app:
build: .
web:
build: web
environment:
WAIT_HOSTS: mongo:27017
ports:
Expand Down
File renamed without changes.
File renamed without changes.
234 changes: 182 additions & 52 deletions announcements.html → web/announcements.html

Large diffs are not rendered by default.

File renamed without changes.
3 changes: 2 additions & 1 deletion requirements.txt → web/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ uvicorn==0.16.0
starlette==0.17.1
Jinja2==3.0.3
requests==2.27.1
pymongo==4.0.1
pymongo==4.0.1
pyyaml
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@
<h1>Announcements</h1>
{% for ann in announcements %}
<p>
{{ ann['createdAt'] | to_date }}<br>
{{ ann['createdAt']}}<br>
<b>{{ ann['author'] }}</b><br>
{{ ann['message'] | discordify }}
<br>
{% for url in ann['attachments'] %}
<img style="max-width: 300px;" src="{{ url }}">
{% endfor %}
<br>
{% for reaction in ann['reactions'] %}
{% if reaction['type'] == 'emoji' %}
{{ reaction['content'] }} {{ reaction['count'] }}
{% else %}
<img src="{{ reaction['content'] }}" width="15" height="15"> {{ reaction['count'] }}
{% endif %}
{% endfor %}
{% endfor %}<br>
</p>
{% endfor %}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added web/views/api.py
Empty file.
File renamed without changes.
File renamed without changes.

0 comments on commit 0363b03

Please sign in to comment.