Git Product home page Git Product logo

hashtag-wall-server's Introduction

Hashtag Wall Server

Hashtag Wall Client Example

dependencies travis-ci contributions welcome

Hashtag wall that displays posts from several social media sources. You can specify the hashtag to monitor and the server collects these posts. Example client website can be found at https://github.com/Krisseck/Hashtag-Wall-Client

This is the server component of the wall. It's a node.js express server that provides a JSON API for displaying the social media posts.

Demo

Client: http://hashtag.polso.info

API: http://hashtag.polso.info:8080/posts

Admin: http://hashtag.polso.info:8080/admin (username: admin, password: password)

Features

  • Cron process that fetches the social media posts
  • Supports multiple social media platforms (currently Instagram & Twitter)
  • Admin interface for displaying and deleting posts
  • Ignore specific user's posts

Requirements

  • Tested with Node.js v10.13.0 (LTS), should work with other 10.x versions aswell.
  • Yarn
  • MySQL-server

Install

Run yarnto install dependencies

Copy config.js.example to config.js and change the values as needed.

To install database tables, run:

node install-dbs.js

Note: Running this script will drop the tables if already existing!

Running the server

app.js is the main API server.

cron.js is the background process that fetches the social media posts.

You can run these scripts with just node app.js and node cron.js, although I recommend using a process manager like PM2. Then the commands will be:

pm2 start app.js
pm2 start cron.js

Hosting

Need help with the project or looking for hosting? Contact me at [email protected]

hashtag-wall-server's People

Contributors

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