Skip to content

GithiomiAnn/hard-website

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,026 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hardhat Enterprises is an organization that aims to create cyber weapons and tools that can be used to empower white-hat operations. All deliverables produced by the company are open source so that anyone may use and benefit from them. These deliverables should either improve on existing tools or fill a market need that is not yet met.

[Note: The Hardhat website has been deployed already. Below is the rundown of how it can be deployed from PythonAnywhere.]

Deploying HardHat Website from Python Anywhere Platform For launching the Hardhat website, we have chosen the Python Anywhere platform since it offers free tiers and the website can be hosted for three months without any charge or cost. In this document, I will describe the process of deploying the website from the platform with the steps necessary.

Step 1: First, a user account needs to be opened using the free tier (Beginners). In this case, the login credentials are:

Note: To make the deployment permanent for future trimesters, use the following account instead:
Email: hardhatwebsite@gmail.com

Step 2: Now you must launch the bash console. Run the command ‘git clone https://github.com/Hardhat-Enterprises/website.git’

Step 3: Create a virtual environment using the command – ‘mkvirtualenv ’. The name of the virtual environment can be anything. Keeping it simple and short is recommended. In this case, I have used ‘venv’ as the environment name.

Step 4: Once the virtual environment is created, the necessary tools and dependencies need to be installed in it using the command – ‘pip install -r requirements.txt’. This command will install all the necessary tools with the correct versions that are needed to launch the website.

Step 5: After that, we have to open the ‘web’ configuration page by clicking the ‘Web’ button on the top right option panel. In the config page, we have to add the exact name of the virtual environment name in the virtual environment section.

Step 6: From the web config page, under the ‘Code’ section, the WSGI Configuration File needs to be opened and in the ‘Django’ section, the code lines need to be uncommented as shown. The path needs to be changed to the git repository. The os.environ['DJANGO_SETTINGS_MODULE'] = '<folder_name>.settings' should be set accordingly. The <folder_name> needs to be replaced by the name of the folder in which the settings.py file is located.

Step 7: We have to open the ‘settings.py’ config file from the ‘Files’ tab and add the Hardhat website URL as an allowed host in the ‘Allowed_Hosts’ option brackets. This will allow the website URL to launch the website whenever searched from any browser. ALLOWED_HOSTS = ['cwt12025.pythonanywhere.com']

Step 8: After reloading the website using the green reload button on the Web configuration page, the URL can be used to check the deployed website.

Deploying HardHat Website from Docker Platform Prerequisites Install Docker on your machine

Step 1: clone the github project to your machine by running the command ‘git clone https://github.com/Hardhat-Enterprises/website.git’

Step 2: Run command 'docker-compose up build' and it will run the application on your machine using docker and You can access the application on localhost:80.

About

The main website for Hardhat Enterprises

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 53.6%
  • CSS 28.8%
  • Python 15.1%
  • JavaScript 1.5%
  • Other 1.0%