Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/demo billing #2

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD ["python", "run.py"]
EXPOSE 5555

CMD ["python", "run.py"]
2 changes: 1 addition & 1 deletion app/client/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div>
<div class="dh-highlight-text">
<div class="container">
<h1 class="clearmargin clearpadding">ShortMe</h1>
<h1 class="clearmargin clearpadding">Hello Demo Preview Env</h1>
<p id="heading-p">ShortMe is a free tool to shorten URLs. Create a short & memorable URL in seconds.</p>
</div>
</div>
Expand Down
5 changes: 1 addition & 4 deletions app/client/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ <h6 class="text-dark font-weight-bold">Check out <a href="{{ url_for('api_doc_bl
<div class="text-center" id="credits">
<div class="card credits-card">
<h6 class="text-dark font-weight-bold"><i class="fa fa-code c"></i> with <i class="fa fa-heart c"></i>
by <a href="https://www.linkedin.com/in/tomer-chaim/">Tomer</a></h6>

<h6 class="text-dark font-weight-bold">Check out my <a
href="https://github.com/acrobaticPanicc/">GitHub</a></h6>
by <a href="https://www.qovery.com">Qovery</a></h6>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion app/client/templates/verify.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="card-body">

<h1 id="token"></h1>
<h1><span>✉</span> Please check your inbox</h1>
<h1><span>✉</span> Please check your inbox x</h1>
<p>We've sent a verification code to your email. Please enter it below and click
verify.</p>

Expand Down
18 changes: 9 additions & 9 deletions app/setup/settings.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import os

SECRET_KEY = os.environ.get('SECRET_KEY')
SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI')
SQLALCHEMY_TRACK_MODIFICATIONS = os.environ.get('SQLALCHEMY_TRACK_MODIFICATIONS')
ADMIN_USERNAME = os.environ.get('ADMIN_USERNAME')
ADMIN_PASSWORD = os.environ.get('ADMIN_PASSWORD')
SECRET_KEY = 'mySecretKey' #os.environ.get('SECRET_KEY')
SQLALCHEMY_DATABASE_URI = 'sqlite:///db.sqlite3' #os.environ.get('SQLALCHEMY_DATABASE_URI')
SQLALCHEMY_TRACK_MODIFICATIONS = False #os.environ.get('SQLALCHEMY_TRACK_MODIFICATIONS')
ADMIN_USERNAME = 'admin' #os.environ.get('ADMIN_USERNAME')
ADMIN_PASSWORD = 'admin' #os.environ.get('ADMIN_PASSWORD')

MAIL_SERVER = os.environ.get('MAIL_SERVER')
MAIL_PORT = int(os.environ.get('MAIL_PORT'))
MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
MAIL_SERVER = 'localhost' # os.environ.get('MAIL_SERVER')
MAIL_PORT = 25 # int(os.environ.get('MAIL_PORT'))
MAIL_USERNAME = 'user' # os.environ.get('MAIL_USERNAME')
MAIL_PASSWORD = 'password' # os.environ.get('MAIL_PASSWORD')
MAIL_USE_TLS = False
MAIL_USE_SSL = True

Expand Down