Giter Site home page Giter Site logo

diary's Introduction

Diary

Your Trusted Companion
Through our innovative diary writing web application, we hope to empower individuals to cultivate a lifelong habit of self-reflection and personal growth. We strive to provide a secure and private environment for users to express their deepest thoughts and emotions, reflect on their experiences, and gain insights into their lives. Our mission is to inspire and support people on their journey of self-discovery, fostering greater self-awareness and assisting them in living more fulfilling and meaningful lives.

Pre-requisites

You should have installed Python and PostgreSQL inorder to run the project.

Project Setup

Run the following commands:

git clone https://github.com/Abekaesh/Diary.git
cd Diary
python3 -m venv venv
source venv/bin/activate
pip install flask
pip install flask_session
pip install psycopg2-binary
pip install functools

Open new terminal and type the commands for setting up of database:

sudo -i -U postgres
psql
CREATE DATABASE diary;
\c diary
CREATE TABLE users ( user_id INT PRIMARY KEY, name VARCHAR(255), email VARCHAR(255), password VARCHAR(255) );
CREATE TABLE diary_entry ( entry_id INT PRIMARY KEY, user_id INT, entry_text TEXT, created_at DATE DEFAULT CURRENT_DATE, FOREIGN KEY (user_id) REFERENCES users(user_id) );
CREATE TABLE tags ( tag_id INT PRIMARY KEY, tag_name VARCHAR(255) );
CREATE TABLE entry_tag ( entry_id INT, tag_id INT, PRIMARY KEY (entry_id, tag_id), FOREIGN KEY (entry_id) REFERENCES diary_entry(entry_id), FOREIGN KEY (tag_id) REFERENCES tags(tag_id) );

Project execution command:

python3 -m flask run

diary's People

Contributors

abekaesh 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.