Please have python3 installed to run this project on terminal: Python3 Installation Also install Xampp for DB and server Xampp Installation
A URL Shortener is a tool that creates a short, unique URL that will redirect to the specific website of your choosing
Modules used in this app are Flask and PyShortener(installation guide given ahead)
Create DB and start Server
- Start MySQL and Apache server from the Xampp control panel.
- Now go to MySQL Server Admin page -> SQL.
- Now we will initialize the database schema.
- For this, paste the queries given in initialize.sql in the SQL window and click on go (created local DB).
Create Config file
- The settings.py is going to fetch values from this file.
- So create a .env file in you base project folder.
- Enter required values according to your local database and preferences.
NOTE: we use file types like .env as they are ignored by github on pushing to repo. This is done because it contains your local configs for your system and may contain sensitive info.
Setting Environment Do the following by typing these commands on python terminal of your IDE
Install the Virtual Environment module
pip install virtualenv
Create a virtual environment
virtualenv venv
Activate the Virtual Environment
venv\scripts\activate.bat
Install the required modules
pip install -r requirements.txt
To run the project
Run the app
flask run
Check out our Contributing Documentation
- First create issue for the task which you would like to contribute to by explaining your approach in it.
- Project maintatiners will assign the issue to you if it's worthy and not repeated.
- While creating pull request mention the issue number in it.
The first step is to register yourself on the Hacktoberfest website using your Github account and sign up as a student.
Find the open source repositories which interest and go try to pick up issues which you can solve.If you don't find one and think you can improve the codebase create a issue stating the problem you want to solve using the proper guidelines. Once the issue is assigned to you, code away till you resolve the issue 🤓 . Once you are done with the coding create a pull request by following the proper CONTRIBUTING.md file given in the repository. If the repository doesn't have one, make a pull request following the accepted rules in the open source community 🤗
You have to make 4 pull requests on any valid repositories. Once you make the pull request, there is a review period of two weeks. PLEASE MAKE QUALITY PULL REQUESTS AND NOT SPAM 😡 If you make spam pull requests your pull request will be deemed invalid/spam and you will be unelligible to win swag
Make 4 valid Pull requests in the month of October to be elligible for a limited edition T-shirt or plant a tree 😇. The first 40,000 winners are elligible for the prizes.
Login/Register:
A user can create an account by registering and later use the credentials to login to use our tool. Login/register credentials are stored in the MySQL database.
Url Shortener tool:
A user can shorten their(Long) Urls using our shortener tool by entering the url and assigning a nickname to it So that later when he checks the history they’ll get to know which link corresponds to which website.
History:
All the URLs shortened by a user are stored in the MySQL database which are later displayed in the history section.
Profile:
This page shows the user details and the user has an option to update his profile.