Giter Site home page Giter Site logo

espresso's Introduction

Espresso Language Learning App

Welcome to Espresso, the language learning app that lets you enhance your language skills while enjoying a cup of coffee!

Table of Contents

Introduction

Espresso is a web application designed to make language learning a delightful experience. The claim, "learning while drinking a caffé", reflects the idea that language learning should be enjoyable and seamlessly integrated into your daily routine.

Features

  • Swipe Interface: Easily indicate your understanding of expressions by swiping left or right.
  • React Framework: Built with React for a responsive and interactive user experience.
  • Expression Repository: Expressions to learn are stored in a JSON file at src/data/expressions.json.

Getting Started

To get started with Espresso, follow these steps:

  1. Clone the repository to your local machine:
    git clone https://github.com/hueper/espresso.git
  2. Navigate to the project directory:
    cd espresso
  3. Install dependencies using Yarn:
    yarn install
  4. Start the development server:
    yarn start
  5. Open your browser and visit http://localhost:3000 to view Espresso.

Usage

Once you have Espresso up and running, you can start using it to enhance your language skills. Swipe left if you didn't understand the expression, and swipe right if you did.

Customaization

Feel free to customize Espresso to better fit your needs. You can modify the expressions in the expressions.json file to tailor the learning content to your preferences.

Contributing

If you'd like to contribute to Espresso, follow these steps:

  1. Fork the repository on GitHub.
  2. Clone your forked repository to your local machine.
  3. Create a new branch for your feature or bug fix.
  4. Make your changes and commit them with descriptive commit messages.
  5. Push your changes to your GitHub repository.
  6. Submit a pull request to the main repository.

License

Espresso is released under the MIT License.

espresso's People

Contributors

hueper avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

schwibbes

espresso's Issues

modify component and add flask route to get expressions from a server

instead of parsing a json file, a get request should be sent to a server to receive the expressions.

useEffect(() => {
    const fetchExpressions = async () => {
      try {
        const response = await axios.get('/api/expressions');
        setExpressions(response.data.phrases);
      } catch (error) {
        console.error('Error fetching expressions:', error);
      }
    };

    fetchExpressions();
  }, []);
EXPRESSIONS_FILE = 'expressions.json'

def read_expressions_from_file():
    with open(EXPRESSIONS_FILE, 'r', encoding='utf-8') as file:
        expressions_data = json.load(file)
    return expressions_data

@app.route('/api/expressions', methods=['GET'])
def get_expressions():
    expressions_data = read_expressions_from_file()
    return jsonify({'phrases': expressions_data['phrases']})

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.