Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Krisseck/Hashtag-Wall-Server
Hashtag wall that displays posts from social media
https://github.com/Krisseck/Hashtag-Wall-Server
instagram social-media twitter
Last synced: about 2 months ago
JSON representation
Hashtag wall that displays posts from social media
- Host: GitHub
- URL: https://github.com/Krisseck/Hashtag-Wall-Server
- Owner: Krisseck
- License: mit
- Created: 2018-10-27T11:09:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T23:43:05.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T15:32:41.875Z (5 months ago)
- Topics: instagram, social-media, twitter
- Language: JavaScript
- Homepage: http://hashtag.polso.info
- Size: 348 KB
- Stars: 42
- Watchers: 7
- Forks: 8
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hashtag Wall Server
[![Hashtag Wall Client Example](https://github.com/Krisseck/Hashtag-Wall-Client/blob/master/hashtag-wall-example.jpg)](http://hashtag.polso.info)
[![dependencies](https://david-dm.org/Krisseck/Hashtag-Wall-Server.svg)](https://david-dm.org/Krisseck/Hashtag-Wall-Server) [![travis-ci](https://travis-ci.org/Krisseck/Hashtag-Wall-Server.svg?branch=master)](https://travis-ci.org/Krisseck/Hashtag-Wall-Server) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/Krisseck/Hashtag-Wall-Server/issues)
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](https://yarnpkg.com/)
* MySQL-server## Install
Run `yarn`to 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](https://pm2.io/). 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]