Simple Portfolio app designed for show your abilities to people with Flask Microframework
- You can show people your skills and get feedback from them.
- You can show your projects to people
- You can show your services to people.
- You can share the details of your projects.
- People can comment on your projects.
- Each commenter is given a different robot profile picture with gravatar.
- People can send you messages from the contact section and these messages will come to your telegram instantly.
- If you are logged in as an admin, you can add projects and services.
- Project and services can be rearranged after sharing
- If you are logged in as an admin, you can delete comments.
- If the user sends a request to an incorrect endpoint, a customized 404 page is shown.
- *Users can download your resume"
Before we start, we need to create an account in mongodb and get the necessary information for the connection.
You can reach the mini guide I prepared for mongodb from the link below. This guide has been prepared in Turkish, but you can follow the pictures to create an account and get important information.
Guide 👈👈👈
You will use the username and password you received from mongodb for the cluster connection in python as follows.
models.py
from pymongo import MongoClient
from dotenv import load_dotenv
import os
load_dotenv()
username = os.getenv("USERNAME")
password = os.getenv("PASSWORD")
class Database:
_client_URL = MongoClient(
f"mongodb+srv://{username}:{password}@cluster1.dumyfbl.mongodb.net/?retryWrites=true&w=majority") # Main connector
db_name = _client_URL["PortfolyoFlask"] # Database Name
Replace {password} with the password and {username} with the username.
- Clone the repository:
git clone https://github.com/erkamesen/Portfolio-Flask.git
- Navigate to the directory:
cd Portfolio-Flask
- To get started with the Portfolio app, you'll need to have the following dependencies installed on your machine:
- install the requirements:
pip install -r requirements.txt
- Set Telegram token
- Set MongoDB account in models.py.
- Set Admin username and password in admin.py
- Run the application:
flask run
Portfolio project should now be running on your local machine at http://localhost:5000