A tweets search application built by React.js and Node.js See Live DEMO
Get a copy of this project
git clone https://github.com/yenhsuan/TweetSearch.git
Node.js and NPM are required. Inorder to use Twitter API, you must have API token and secret (Get them here).
This project followed by Standard.js. I highly recommend this library.
npm install standard -g
Install all necessary libraries
cd ./client && npm install
You can test client application by launching development web server
npm start
Bundle and output static files
npm run build
Install all necessary libraries
cd ./server && npm install
Configure server settings
./config/server-config.js
module.exports = {
port: YOUR_PORT_NUBER
}
Configure Twitter API settings
./config/twitter-config.js
module.exports = {
consumer_key: 'YOUR_APP_KEY',
consumer_secret: 'YOUR_APP_SECRET',
access_token: 'YOUR_TOKEN',
access_token_secret: 'YOUR_TOKEN_SECRET',
}
Launch Server
npm start
This project is deployed by PM2, and running on a Ubuntu 16.04 machine. See Live DEMO
- React.js - JavaScript web framework
- React-MobX - React state management library
- Webpack - Bundle and pack static files
- Node-sass - SCSS preprocessor for Node.js
- Node.js - Web server
- Express.js - Web framework for Node.js
- Twit - Twitter API Client for Node.js
See package.json
for details
Yen-Hsuan Chen E-mail: yenhsuan.terry@gmail.com Website: https://yenhsuan.github.io