Skip to content

Samyar-Projects/Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Samyar Projects website

Discord | Website (WIP)

| | |


Disclaimer: Website is still in development.

Note: I am taking a break to work on my R.O.S. robot project thus development on all Samyar Projects projects will be paused for a little while. None of Samyar Projects's projects are canceled.


The Samyar Projects website,
Written with HTML 5, CSS 3, Bootstrap 5, and Python Flask.

Live website: https://gigawhat.net/

How to run localy :

  1. Install the dependencies that are listed in the requirements.txt file.

  2. Add this to your hosts file *1:
    127.0.0.1      sp-local.ltw
    127.0.0.1      www.sp-local.ltw
    127.0.0.1      quiz.sp-local.ltw
    127.0.0.1      blog.sp-local.ltw
    127.0.0.1      account.sp-local.ltw
    127.0.0.1      api.sp-local.ltw
    127.0.0.1      forum.sp-local.ltw

  3. In the config.py file, change AppConfig(ProductionConfig) to AppConfig(LocalConfig)

  4. In the config.py file, change ANALYTICS_TAG_ID to your own Google Analytics G- ID. *2

  5. In the config.py file, change ANALYTICS_PROPERTY_ID to your own Google Analytics property ID.

  6. Put your Google Service Account credentials JSON file in a folder called secrets. Create this folder in the same directory as the app.py file. (Rename the file to ga_creds.json) *3

  7. Create a vars.env file in the secrets folder that you created and add these to it (change the values to your values) *4:
    FLASK_SECRET_KEY = "A VERY SECRET STRING"
    PASSWORD_ENCRYPT_SALT = "A VERY SECRET SALT"
    MAILJET_API_KEY = "MAILJET API KEY"
    MAILJET_API_SECRET = "MAILJET API SECRET"

  8. Run the application with: python app.py

  9. Go to: http://sp-local.ltw:5000/


*1: If you don't know how to modify your hosts file, take a look at this guide: https://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/

*2: If you don't know how to get a Google Analytics tracking ID, take a look at this guide: https://support.google.com/analytics/answer/9304153?hl=en&ref_topic=9303319#zippy=%2Cfind-your-g--id-for-any-platform-that-accepts-a-g--id (NOTE: You will be creating the data stream for Web. In the 'Set up data collection' section, go down to 'Find your "G-" ID' then follow those steps and get your G- ID)

*3: To get this file, create a 'Google Cloud Platform' project, enable the 'Analytics Data API' in the project, go to the 'Credentials' section, create a 'Service Account' and finally go to the 'Keys' tab on your Service Account page then create and download a JSON key.

*4: To get the Mailjet credentials: Create a Mailjet account, go to 'Account Settings > API Key Management' then create an API key.

Note: Python 3.8.12 is recommended.

Support :

If you think that you have found a bug please report it here.

Contributing :

Please take a look at CONTRIBUTING.md for contributing.

Credits :

Role Name
Lead Developer Samyar Sadat Akhavi
Assets Rüzgar Kaya, Samyar Sadat Akhavi


Copyright © 2021-2024 Samyar Sadat Akhavi.