kcharles52 / myDiary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status Maintainability

MyDiary

This is an online application that helps users to record their memories.

Prerequisites

  • Text editor
  • Browser
  • Python/Flask framework

How to setup the project

  • Create a virtual environment using the following command

    $python3 -m venv myenv

  • Activate the virtual environment

    $source myenv/bin/activate

  • Install dependencies in the virtual environment

    $pip install -r requirements.txt

Run the application

Testing frame works

  • nosetests
  • pytest

How to run the tests

  • use the following command to run tests

    $nosetests --with-coverage

Features

User interface

  • signup page
  • signin page
  • Diary entries
  • Diary entry
  • Add and modify entry
  • Profile page
  • Dashboard page

Preview on Github pages

Endpoints

HTTP Method End point Action
POST /api/v1/users Register a user
POST /api/v1/user Login a user
GET /api/v1/entries Fetch all entries
GET /api/v1/entry/<entry_Id> Fetch a single entry
POST /api/v1/entry Create an entry
PUT /api/v1/entries/<entry_id>/ Modify entry

Technologies

  • HTML
  • CSS
  • javascript
  • Python 3.6

Author

Kato Charles

About


Languages

Language:HTML 47.6%Language:Python 33.6%Language:CSS 14.5%Language:JavaScript 4.3%