Code Monkey home page Code Monkey logo

server's Introduction

Emote

A mobile chat application with emoji reactions and NLP-generated emoji suggestions.

CircleCI

header

Database Setup for UNIX-based Systems

  1. Install PostgreSQL major version 11. We recommend using homebrew.
  2. Switch to the postgres UNIX account: sudo -i -u postgres
  3. Create a username and password (replace username with desired username): createuser username --pwprompt
  4. Enter password to be used for the user you just created
  5. To create a database (replace database with desired database name): createdb database
  6. To exit the postgres UNIX account: exit
  7. Create a file named .env at the root of the project with the variables in .env.example and replace with the host, user, user password and database information for the databases you'll be using for development and testing respectively. DEV_DB_HOST and TEST_DB_HOST default to localhost so you don't have to include those variables if you plan to use localhost. It is suggested that you specify separate tables for DEV_DB_NAME and TEST_DB_NAME since the test suites will wipe the test database clean before running each test suite. Please note that production database information is only accessible to the project owners.

Run Server

OS X, Linux and Windows:

npm install
npm start

Run Tests

npm install
npm test

NLP

Installation

  1. Don't forget to define TWITTER_USER, TWITTER_PASS, TWITTER_KEY and TWITTER_SECRET in your .env file. Refer to the .env.example to be sure you define the necessary environment variables.
  2. If planning to get more data using a twitter stream, download this ChromeDriver zip file, unzip it and copy the executable into the nlp directory.
  3. Update and activate the Anaconda virtual env:
conda env update -f nlp/env.yml --prune
conda activate emote

Get More Data

  • To use twitter stream (live tweets; note that you must have Twitter login verification (2-factor authentication) temporarily turned off as the script uses your username and password to authenticate you along with your app key and secret to acquire the proper oauth v1.0 credentials — v2.0 is not available for streams):
python nlp/twitter.py
  • To use twitter search and get 100 tweets at a time:
python nlp/twitter.py -se

Read Tweets Pickle

python nlp/read.py

Process Tweets Pickle

python nlp/process.py

Meta

Distributed under the Apache v2.0 license. See the LICENSE file for more information.

Contributing

  1. Fork the repository
  2. Create your feature branch on the forked repo (git checkout -b feature/fooBar)
  3. Commit your changes to the forked repo (git commit -am 'Added fooBar that does x, y, z')
  4. Push the branch back to your forked repo (git push origin feature/fooBar)
  5. Create a pull request from your fork

Resources

  • README template used is located here

server's People

Contributors

ernewtoner avatar mnicole avatar sonamdkindy 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.