Skip to content

Pirate2606/clonebitly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions:

Prerequisites:

1. Python3 should be installed on the system.
2. Need an active internet connection.

To run the project locally, follow the following steps:

1. Setup a virtual environment:
    For ubuntu:
        1. sudo apt install virtualenv
        2. virtualenv -p python3 name_of_environment
        3. To activate: source name_of_environment/bin/activate
    For windows:
        1.	pip install virtualenv
        2.	python -m venv <path for creating virtualenv>
        3.	To activate: <virtualenv path>\Scripts\activate

2. Clone the repository: git clone https://github.com/Pirate2606/clonebitly
3. Change the directory: cd clonebitly
4. Install the requirements: pip install -r requirements.txt
5. Generate OAuth client ID and Secret for Google, Twitter, Facebook and Github.
6. Place the client ID and secret for (Google, facebook and github) in "config.py" file, and for twitter add the api_key and api_secret in the oauth/twitter.py file (line 14 and 15).
7. Create database: flask createdb
8. Run the server: python3 app.py
9. Open this link in browser: http://127.0.0.1:5000/