Skip to content

Krisseck/Hashtag-Wall-Server

Repository files navigation

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 v18.12.1 (LTS), should work with other 18.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 kristian@polso.info

About

Hashtag wall that displays posts from social media

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published