Giter VIP home page Giter VIP logo

leetenglish's Introduction

About LeetEnglish

Hi, Welcome to leetEnglish, LeetEnglish is an app that allows users to increase their vocabulary level by reading. In this app, you will be able to read articles shared by another user as public articles, you will be able to read through the entire content and get definitions as well as add an image to help your memorization of the vocabulary. Besides that, you will be able to import your own article into the app, and you also able to implement the whole feature as public articles, get definitions, memorization vocabulary with images, and getting practice with the vocabulary.

Most importantly, In leetEnglish you will be able to connect with another user, adding your own tweets, share your moment with another user!, let diving in!


APIs Usecase

leetEngish use two APIs, WordsAPI and GoogleSeach API(serpapi)

WordsAPI: get the definition for the unknown vocabulary

GoogleSearch API: retrieve unknown vocabulary memorize images

if you would like to see more detail of my code, making sure to retrieve the API key for both APIs to prevent any unnecessary errors. on the root directly of the file create a file name "api_keys.py", under this file type of the following variable:

wordsapi = "your_api_key"
serpapi = "your_api_key" 

How to run the app locally

database

create databases in your computer call "leetenglish" and "leetenglish-test"

leetenglish for general storage and leetenglish-test for testing

CREATE DATABASE leetenglish

CREATE DATABASE leetenglish-test

run seed.py

for demonstration purpose to add data into the app, run seed.py file using ipython under the python virtual environment, runs the following commands

pip install -r requirements.txt

source venv/bin/activate

ipython

%run seed.py

start the app

download the file from this repository, on your computer type the following command on your terminal:

source venv/bin/activate

under the virtual environment terminal type the following commands:

export FLASK_ENV=development

flask run

Database Schema

leetEnglish have 18 tables under leetenglish database:

  • User
  • Follows
  • Quotes
  • Articles
  • Categories
  • VocabularyFromArticle
  • UserFinishReading
  • VocabularyListName
  • VocabularyList
  • ImportCategory
  • ImportArticles
  • FinishImportReading
  • ImportCategoryArticles
  • VocabularyFromImportArticle
  • Message
  • CommentMessage
  • Likes
  • CommentLikes

alt database schema1 alt database schema2 alt database schema3

Deploy LeetEnglish on Heroku

leetEnglish! app has deployed on Heroku, you can either register an account or use my account to export the app

username: shuminzhou, password: shuminzhou

leetenglish's People

Contributors

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