- URL: https://www.zombietechinc.com/toolsaplenty
- IP: 35.175.69.223
- SSH Port: 2200
-
Acquire an AWS (Amazon Web Services) Lightsail Server. (https://lightsail.aws.amazon.com)
-
Create an Ubuntu instance
-
Add DNS zone and necessary records to current hosting provider
-
Add a Load Balancer to Ubuntu Instance
-
Create SSL certificates for Load Balancer to current domain
-
SSH into Ubuntu instance
-
Install Apache Server using 'sudo apt-get install apache2'
-
Install mod_wsgi using 'sudo apt-get install libapache2-mod-wsgi'
-
Install PostgreSQL using 'sudo apt-get install postgresql'
-
Edit /etc/apache2/sites-available/000-default.conf to this configuration:
<VirtualHost *:80> ServerName zombietechinc.com ServerAdmin webmaster@localhost DocumentRoot /var/www/html
<Directory /var/www/html> Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined WSGIDaemonProcess toolcatalog home=/var/www/itemcatalogproject WSGIProcessGroup toolcatalog WSGIScriptAlias /toolsaplenty /var/www/itemcatalogproject/toolcatalog.wsgi <Directory /var/www/toolsaplenty> Order allow,deny Allow from all WSGIScriptReloading On </Directory>
-
Update ServerName in conf file to your domain
-
Install Flask using 'pip install Flask'
-
Install git using 'sudo apt-get git'
-
'cd' into /var/www/ directory
-
Clone project from github.com/kinetik06/tools-a-plenty
-
Go to https://login.amazon.com/website and configure new application
-
'cd' into /var/www/itemcatalogproject/ directory
-
Edit 'CLIENT_ID' & 'CLIENT_SECRET' variables in toolcatalog.py to match settings in Web Settings at --https://sellercentral.amazon.com/hz/home
-
Update your Javascript Origins and Return URLs to your domain respectively
-
Edit line 145 and 156 in toolcatalog.py to change the redirect_uri to your domain.
-
'rm' toolcatalogwithusers.db
-
Run database_setup.py using 'python database_setup.py'
-
Restart Apache Server using 'sudo apachectl -k restart'
- Navigate to your domain. (It should be blank with the exception of the header)
- Click on 'Login" at top-right
- Click on 'Login with Amazon'
- Enter your username and password
- Approve permission for application to access your profile info
- You will then be redirected to home page. (Create Brand should now be visible)
- Create your own brand. Click on brand, and create tools.
- 'Logout' link should be in the top right header.
- Flask
- SQLAlchemy
- Httplib2