GithubHelp home page GithubHelp logo

cram's Introduction

Cram

Ed-tech App leveraging AI & OCR to help students move past breakpoints. Currently configured to help developers learn new technologies, however, I'm working on allowing teachers to upload specific material relevant to each student's curriculum.

Features

The app permits students to take a photo of a topic related to the backend, such as Koa, Node, Express, etc, with which they are currently struggling. From the photo the app fetches information related to that relevant topic, so far including: a tutorial video, bullet points and some other closely related topics.

Tech Stack

A combination of React-Native with Expo has been used to build the user interface. While on the backend the app levages GraphQL with ApolloClient to leverage queries to a seeded database containing information on each topic.

Front end

React-Native Expo Typescript

Back end

ApolloClient GraphQL MongoDB Mongoose

System Requirements

NodeJS v15 or greater npm v7.5 or greater

Getting Started

To get up and running it’s first necessary to install all dependencies. This will install both the client and server dependencies for you.

git clone https://github.com/romduda/cram.git Run npm i – this will install dependencies in both the client and server folders.

Setting up the backend

Seeding the database

As mentioned the backend works off of a seeded database. This is a script available in the backend. So from the server folder in terminal run:

npm run seed

Google Vision ApiKey

The image processing is handled by Google’s Vision API. To get this working you will have to register an account with google and obtain an apiKey. Once acquired you will have to create an apiKey.json file in the scr folder of the server to store it in.

Environment variables

PORT is the only environment variable needed on the backend. Create a .env file in the server folder and store your port number there. See .env.example.

Running the server

npm run start-dev Once all the other steps have been completed, from the src folder in the terminal run

node index.js

or, if nodemon is installed (recommended)

npm run start dev

Setting up the frontend

Environment variables

There are two environment variables to set up on the frontend: APOLLOCLIENT_HOST and APOLLOCLIENT_PORT. You can run ipconfig getifaddr en0 in the terminal to find out your IP address.

Running the client

expo start

or

npm run start

drawing

cram's People

Contributors

raphaelj274 avatar romduda avatar rosscurry 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.