Skip to content

SayAnythingg/FlaskAPI_for_Dating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlaskAPI_for_Dating(v1)

This is back-end code, separate from "Dating" project.

"Dating" project fork from https://github.com/CHUNG-HAO/Dating

SSL GET commands

This is the method of create the SSL certificate for testing:

  • Step1: Build the ssl.conf in your project

  • Step2: Run this command to build the server.key and server.crt

openssl req -x509 -new -nodes -sha256 -utf8 -days 3650 -newkey rsa:2048 -keyout server.key -out server.crt -config ssl.conf
  • Step3: Run this command to build the server.pfx
openssl pkcs12 -export -in server.crt -inkey server.key -out server.pfx
  • Step4: Run this command by system administer in powershell
certutil -addstore -f "ROOT" server.crt

Now you can transfer the URL http to https in your test browser for a few minutes.

details here: https://blog.miniasp.com/post/2019/02/25/Creating-Self-signed-Certificate-using-OpenSSL

Unit test coverage(Keep updating)

You can also see this testing coverage on GitHub actions.

API docs

Click here for know more: https://sayanythingapi.sdpmlab.org/api/v1/apidocs/

RF

  1. https://medium.com/@charming_rust_oyster_221/flask-%E9%85%8D%E7%BD%AE-https-%E7%B6%B2%E7%AB%99-ssl-%E5%AE%89%E5%85%A8%E8%AA%8D%E8%AD%89-36dfeb609fa8 (openssl setting tutorial)
  1. https://blog.miniasp.com/post/2019/02/25/Creating-Self-signed-Certificate-using-OpenSSL (openssl: http to https on flask)
  1. https://hackmd.io/@bessyhuang/Bk2ZnTFwV#%E7%94%A8Flask-Mail%E4%BE%86%E6%94%AF%E6%8F%B4email (flask-mail: Email sending on flask)
  1. https://www.freecodecamp.org/news/setup-email-verification-in-flask-app/ (email verification tutorial)
  1. https://github.com/ashutoshkrris/Flask-User-Authentication-With-Email-Verification (email verification tutorial)
  1. https://itsdangerous.palletsprojects.com/en/2.1.x/ (itsdangerous: Use token on flask)
  1. https://blog.51cto.com/douya/2151255 (flask-session: Use session on flask)
  1. https://zhuanlan.zhihu.com/p/544198743 (flask-caching: Use cache on flask)
  1. https://docs.pytest.org/en/7.1.x/reference/reference.html#command-line-flags (pytest: Unit test on flask)
  1. https://flask.palletsprojects.com/en/3.0.x/testing/ (pytest: Unit test on flask)
  1. https://flask-migrate.readthedocs.io/en/latest/ (flask-migrate: Database migration version management)
  1. https://github.com/flasgger/flasgger (flasgger: API document generation)
  1. https://flask-admin.readthedocs.io/en/latest/ (flask-admin: Building an admin interface)

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •