Coder Social home page Coder Social logo

dat310-2023-examproject's Introduction

Conventional Commits python linting: pylint Checked with mypy

You will need Python 3.11 and Flask.

pip install --user flask

I prefer to use pip with the "--user" flag. It may be necessary to add flask to the system $PATH. (Linux: Prepend ~/.local/bin to $PATH.)

How to run:

git clone https://github.com/wathne/dat310-2023-examproject.git
cd dat310-2023-examproject
python app.py
firefox http://localhost:5000/

Rough overview:

  • Project report | 5 |
  • Log in works | 3 |
  • Register user | 3 |
  • JS Form validation | 5 |
    • (See /static/form-validation.js)
  • Sort or search possible | 3 |
    • (search/sort/filter ascending/descending by date/subject/text/image/user)
  • Sort or search stored | 4 |
    • (Settings stored as json in SecureCookieSession.)
  • Update, delete working | 3 |
  • AJAX request used | 3 |
  • Fluid layout | 5 |
  • Absolute used | 2 |
    • (absolute and z-index used by text background in footer.)
  • Flex used | 2 |
  • Semantic tags | 2 |
  • Phone layout (bootstrap) | 5 |
    • (800px width looks ok.)
  • Layout extra | 3 |
    • (Sticky footer and probably something else.)
  • Components | 5 |
  • Data stored, updated, deleted | 6 |
  • Rest API | 6 |
  • Server side validation | 5 |
  • Errors displayed | 5 |
  • Authentication | 5 |
  • Access control | 5 |
    • (User groups, only moderator/admin can modify/delete threads.)
  • Extra feature | 15 |
    • (Images, dates and probably something else.)

Dev stuff:

Google style guides:

Commit convention:

How to install all devDependencies listed in package.json (optional):

cd dat310-2023-examproject
npm install

This will install commitlint and husky git hook. The husky git hook should work on both Linux and Mac, maybe not on Windows.

How to install and run pylint and mypy (optional):

pip install --user pylint
pip install --user mypy
cd dat310-2023-examproject
pylint
mypy

I prefer to use pip with the "--user" flag. It may be necessary to add pylint and mypy to the system $PATH. (Linux: Prepend ~/.local/bin to $PATH.)

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.