GithubHelp home page GithubHelp logo

portfolio-website's Introduction

My Personal Portfolio-Website This project is part of my foundation project. I have used Flask and SQLAlchemy for it. The database is only for my personal login and it's purpose is to edit projects and skills directly inside the website without changing the code. I am currently hosting it via GCP on www.richard-kruemmel.de

How to set up this programm

Prerequisite: Python3

pip3 install -r requirements.txt

Create config.py 

    import os
    basedir = os.path.abspath(os.path.dirname(__file__))

    class Config(object):

     SECRET_KEY = os.environ.get('SECRET_KEY') or ‘>insert secure hash<‘      SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 
         'sqlite:///' + os.path.join(basedir, 'app.db')      SQLALCHEMY_TRACK_MODIFICATIONS = False      MAIL_SERVER = os.environ.get('MAIL_SERVER')      MAIL_PORT = int(os.environ.get('MAIL_PORT') or 25)      MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS') is not None      MAIL_USERNAME = os.environ.get('MAIL_USERNAME')      MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')      ADMINS = [‘>insert your email adress<]

Create DB

    pip install flask-migrate

    flask db init

    flask db migrate -m “databasetable”

    flask db upgrade

    Run python3

        >>>from app import db
        >>> from app.models import User
        >>> u = User(username=“admin”, email=“[email protected]”)
        >>>u.set_password('mypassword')
        >>> db.session.add(u)
        >>> db.session.commit()

Execute python portfolio.py

Got to http://127.0.0.1:5000/login
    Enter your username and password and login
Go to http://127.0.0.1:5000/about
    Add skill name and level (e.g. 70%) to your portfolio

portfolio-website's People

Contributors

richardkruemmel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.