Code Monkey home page Code Monkey logo

cboard-api's Introduction

Cboard API - REST API for CBoard application

Cboard is an augmentative and alternative communication (AAC) web application, allowing users with speech and language impairments (autism, cerebral palsy) to communicate by symbols and text-to-speech. This repo supports the CBoard front-end, providing backend functionality and persistence.

Learn more about the Cboard project.

Quick start

Pre-requisites

Before installing and running the Cboard API, be sure you have locally installed the following tools:

  • Node.js > 7.0.0 (download here)
  • MongoDB > 3.0.0 (download here)
  • Swagger

Install Swagger globally using npm:

npm install -g swagger

If needed, check out the Swagger docs here.

Use the following commands to check that you have them successfully installed, and/or to double-check your versions:

  • node -v
  • mongo --version
  • swagger --version

Install

Clone the repository and install npm dependencies:

$ git clone https://github.com/cboard-org/cboard-api.git
$ cd cboard-api
$ npm install

Start the database

Start MongoDB. (See MongoDB docs, if needed).

$ mongod

Run the API Server

In a separate terminal tab/window, run the Swagger project server.

$ swagger project start

This will start a server process listening on port 10010. You will now be able to make calls to the API.

(If you are having trouble, make sure you have successfully installed the pre-requisites -- see "Pre-requisites" section above.)

See API Paths

Swagger provides an interactive, browser-based editor. To visualize available API endpoints, start the editor:

$ swagger project edit

That should open a browser window and show API swagger editor (as shown below): Cboard API Swagger

Mailing system configuration

When a new user is created using the API, some verification emails are generated. To use a specific SMPT server, locally edit the following file to use values for an SMTP server you own: config/env/development.js And look for following config block:

    emailTransport: {
        from: '[email protected]',
        host: 'smtp.sendgrid.net',
        port: 465,
        secure: true,
        service: 'Sendgrid',
        auth: {
            user: 'apikey',
            pass: process.env.SENDGRID_API_KEY
        }
    }

License

Code - GPLv3
Symbols - CC BY-SA

cboard-api's People

Contributors

arthurdenner avatar martinbedouret avatar shayc avatar zachi avatar

Watchers

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