Coder Social home page Coder Social logo

mercy-idindili / mercy-srantingwebsite Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.37 MB

My first interactive website I created as my CS50 final project. A website where you can rant and it responds by redirecting you to quotes or to a meditation video

Python 39.39% CSS 23.81% HTML 36.80%

mercy-srantingwebsite's Introduction

Link to youtube video presentation: https://youtu.be/vL-71H7sCCc

A. ALL THE FILES AND FOLDERS

The FINAL PROJECT folder has two additional folders within it: a) static: this contains the main background image(rant.png) and two css files b) templates which contains 8 html files

The FINAL PROJECT folder has five important files that aren't in folders: a) application.py which contains the python code necessary for the website to function (the back-end) b) rant.db which is contains two tables, ReturningUsers that keeps track of registered users of the website and SavedQuotes which saves the quotes recomennded for a user. c)words.txt that contains the words a users' words used in their rant/complaint is to be matched with d)READ.md e)Design.md

B. THE FUNCTION OF EACH IN DETAIL

Static Folder:

There are two css files: a) style.css which is used in rantmachine.html & response.html b) style2.css which is used for the rest of the html files.

There is also rant.png which is the background image used in all of the html files. Its an image of a road.

Templates Folder:

There is a total of 8 html files and here is the function of each: a) rantmachine.html is the main/welcoming page. It contains a quote which represents the motivation of this website: A place where someone can write whatever is bothering them and then the website will redirect them to a relevant quote/ it will give them a customized response. This web page contains two buttons, one allows the user to proceed anonymously and the other to register/login so they may be able to save the quotes recommended for them.

b)LetItGo.html This is the web page that someone is redirected to when they press the "Proceed Anonymously" button on rantmachine.html It contains a form where someone inputs their name & rant/problem. The button "LetItGo" redirects them either to a relevant quote or customized response.

c)response.html This is "customized response" web page. It addreses the person by their name, and recommends a meditation video.

d)login.html This contains a registration link and a form for a registered user to login.

e)register.html This contains a form that a new user can register. After registration, they are redirected to the login page.

f)SavedQuotes.html This is the webpage that loads when a user logs in. It contains their previous quotes in a table, and two buttons: one that allows them to log out and another one that allows them to "LetItGo" i.e. write their problem/want and they'll get a customized response/quote.

g)LetItGo2.html This is a form for logged in users only to write their rant/problem and get a a customized response/quote.

h)error.html This is the page a user is redirected to when they register with a used username, or makes errors loggin in.

Other Important Files:

a) application.py contains python code that links all the web pages together b)words.txt contains negative words c)README.md d)Design.md contains explanations for design choices

C. HOW TO COMPILE

As long as every file is within the folders specified above, if you run "flask run" on the terminal at application.py the whole website should work.

mercy-srantingwebsite's People

Watchers

Mercy Idindili 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.