Stop stalking and start StopStalking :wink:
Stop stalking and Start StopStalking :sunglasses:
Note: Apply sudo if required for your system.
Assuming you are running a Debian-based distribution, you can install them by using:
apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev
Install the required packages by running:
pip install -r requirements.txt
Also, pip doesn't respect proxy while installing packages from the requirements file. So if you are using a proxy in your terminal you MAY use:
pip install -r requirements.txt --proxy=<proxy address>
To install uglifyjs:
npm install uglify-js -g
To install uglifycss:
npm install uglifycss -g
Install web2py (We need 2.14.6 version only) in a directory. We have committed the web2py source so that you can directly unzip and start using it
Navigate into the applications directory in web2py directory.
$ cd web2py/applications/
Install StopStalk by cloning this repository
git clone https://github.com/stopstalk/stopstalk-deployment.git
mv stopstalk-deployment stopstalk
Note: Web2Py does not allow appname to contain hyphens.
Install MySQL - here Make sure you remember the root password for mysql server.
Create a database in MySQL
$ mysql -u root -p # Enter your mysql root password after this.
mysql> CREATE DATABASE stopstalkdb;
mysql> CREATE DATABASE uvajudge;
Copy 0firstrun.py
to models/
$ cd stopstalk/
$ cp models/0firstrun.py.sample models/0firstrun.py
Open 0firstrun.py
and change the settings.
current.mysql_user = "root" # Change if you have given access to any other user in mysql
current.mysql_password = "" # As per your mysql password
current.mysql_server = "localhost"
current.mysql_dbname = "migration" # Will remain same as long as you followed 5.
current.mysql_uvadbname = "uvajudge" # Will remain same as long as you followed 5.
# Configure mail options
current.smtp_server = "logging" # Mails will not be sent. Will be logged where the web2py server is running
# Else you can set it to your smtp server.
current.sender_mail = "" # Not required if logging
current.sender_password = "" # Not required if logging
current.bulk_smtp_server = "logging"
current.bulk_sender_mail = "" # Not required if logging
current.bulk_sender_password = "" # Not required if logging
current.analytics_id = "" # Leave it empty if you don't want Google Analytics on Localhost
current.calendar_token = "" # Leave it empty if you don't have an access token ID for Google Calendar API
# Leave the following empty for very basic email validation
# https://app.neverbounce.com/settings/api
current.neverbounce_user = ""
current.neverbounce_password = ""
In case if you want to send emails - Install postfix
for your respective OS and configure the above smtp server accordingly.
Install Redis - here
Install InfluxDB (1.7) - here
Navigate back to the web2py folder and start the web2py server.
$ cd web2py
$ python web2py.py -a yourPassword // Choose any password
Open the browser and go to the URL -
http://localhost:8000/stopstalk/
Note:
Done. :smile:
To setup syntax check before all of your commits, just create a file in applications/stopstalk/.git/hooks/pre-commit with just make syntaxx_check
as it's content.
A few steps to setup your local database - StopStalk Wiki
StopStalk is built on the Web2Py Framework, which is a Python-based MVC framework. The project also depends on several other open-source packages, some of which are
Fork the repository
Clone your forked repository
Find any of the issues from here - Issues and try solving it or any other enhancements
Solve the bug or enhance the code and send a Pull Request!
Note: Make sure to add the issue number in the commit message.
Example Commit message: Solved Issue #5
We will review it as soon as possible.
Configure the models/000_config.py file as per your requirement.
Contact Us Page: https://www.stopstalk.com/contact_us
Email: [email protected], [email protected], [email protected]
Creator Website: http://raj454raj.com