Table of contents
- This a meme page built using flask, it uses reddit-api to intreact with reddit and get the meme image
- And also added user authentication using MySQL database, where users can register, login and logout
- After every 25 seconds a new meme will be displayed
- Flask
- MySQL
- HTML
- CSS
- JS
-
Clone the repository:
git clone https://github.com/hemanth110702/meme_page.git cd meme_page
-
Install Flask in that directory
pip install flask
-
Install flask_mysqldb in that directory
pip install flask_mysqldb
-
Install requests in that directory
pip install requests
-
Update the config in app.py (you can find your details in MySQL workbench)
app.config['MYSQL_HOST'] = 'YOUR-HOST-NAME' app.config['MYSQL_USER'] = 'YOUR-USER-NAME' app.config['MYSQL_PASSWORD'] = 'YOUR-PASSWORD' app.config['MYSQL_DB'] = 'YOUR-DB-NAME'
-
Run XAMPP server
- open XAMPP
- Click on Apache - start
-
Run the flask file
python app.py
- A new meme generates for every 25 seconds
- Users can register and login to their account
Desktop View |
---|
Home Page |
Login Page |
Registration Page |
After Logged in |