Craft your digital presence with Flask. A comprehensive portfolio template to showcase your work and insights.
User Showcase | Docker Image | License
- Analytics: Vercel Analytics
Located under api/config.ini
, this configuration file lets you input key information such as:
- Name
- Domain
- Social media links
By populating this file, you enable the automatic update of the entire Flask app with your personal information. Ensure to fill out every detail correctly to reflect your identity throughout the app.
- Add comments to the blog (completed: 2023.08.11)
- Create
config.ini
for all variables (completed: 2023.08.11)
Utilize the provided templates for creating content:
For assistance with markdown syntax, visit Markdown Live Preview.
- Create a new public repo named
my-blog-comments
. - Enter
YourGithubName/my-blog-comments
inside Config.ini. - Test your first post which will prompt you to install the app, directing it to your
my-blog-comments
repo.
Credit: https://utteranc.es/
Ensure you have the latest versions of Python and Flask. Then, follow these steps:
git clone https://github.com/buildwithdan/flask-portfolio.git
cd flask-portfolio
flask --debug --app api/index.py run
Note: This Docker setup was crafted primarily for educational purposes. If you intend to modify website content, clone or fork the original project, then adjust the HTML files under
api/templates
. Subsequently, rebuild the Docker image for deployment.
To build the Docker image, use:
docker build -t appname .
Replace the following paths to your own local machine folders you created, to allow docker to use your own markdown files:
"/path/to/blogs"
"/path/to/projects"
docker run -d \
--name=flask-portfolio \
-p 5002:5000 \
-v /path/to/blogs:/app/api/content/blogs \
-v /path/to/projects:/app/api/content/projects \
--restart unless-stopped \
buildwithdan/flask-portfolio
As example:
docker run -d \
--name=flask-portfolio \
-p 5002:5000 \
-v /home/root/website/blogs:/app/api/content/blogs \
-v /home/root/website/projects:/app/api/content/projects \
--restart unless-stopped \
buildwithdan/flask-portfolio
For detailed Docker CLI info, refer to the official documentation.
Kindly consult the license and erase all personal details (resume, blog entries, images, etc.) from your cloned/forked version.