Awesome Open Source
Awesome Open Source

🐣 Node Express/MongoDB + React/Redux App - Zwitter

A basic clone of Twitter (Boilerplate App) using - Node, Express, MongoDB, React and Redux using create-react-app with separate API (express+mongo) and Frontend (react+redux) folders. Uses Google's Material Design UI (material-ui package).

📝 Features

  • [x] List all tweets
  • [x] View single tweet
  • [x] Post a tweet
  • [x] Login / Register
  • [x] Enable CORS
  • [x] Progressive Web App features (Offline first, Service worker, Application shell)

▶️ Running

  • Clone repo git clone [email protected]:atulmy/node-express-react-redux-zwitter.git zwitter
  • Install NPM modules for api cd api and npm install
  • Install NPM modules for frontend cd frontend and npm install
  • Run api server cd api and npm start (runs on port configured under api/src/config/index.js)
  • Run frontend server cd frontend and npm start (runs on port 3000 or your PORT environment, should automatically open in your browser)

📦 Packages Used

API

  • bcrypt (Library to help you hash passwords)
  • body-parser (Parse incoming request bodies)
  • cookie-parser (Parse Cookie header)
  • express (Fast, unopinionated, minimalist web framework)
  • jsonwebtoken (JSON Web Token implementation)
  • lodash (Modular utilities)
  • moment (Parse, validate, manipulate, and display dates)
  • mongoose (MongoDB object modeling tool)

Frontend

  • classnames (A simple utility for conditionally joining classNames together)
  • immutability-helper (Mutate a copy of data without changing the original source)
  • material-ui (React Components that Implement Google's Material Design)
  • moment (Parse, validate, manipulate, and display dates)
  • react (Library for building user interfaces)
  • react-addons-css-transition-group (React CSSTransitionGroup add-on)
  • react-dom (React package for working with the DOM)
  • react-redux (Official React bindings for Redux)
  • react-router-dom (v4, A complete routing library for React)
  • react-tap-event-plugin (Facebook's TapEventPlugin)
  • redux (Predictable state container for JavaScript apps)
  • redux-devtools-extension (Redux DevTools extension)
  • redux-thunk (Thunk middleware for Redux)

📸 Screenshots

screenshot

🏗 Core Structure

zwitter
  ├── api (api.example.com)
  │   ├── src
  │   │   ├── config
  │   │   ├── models
  │   │   ├── routes
  │   │   ├── server.js
  │   │   └── index.js
  │   │
  │   └── package.json
  │
  ├── frontend (example.com)
  │   ├── public
  │   ├── src
  │   │   ├── actions
  │   │   ├── components
  │   │   ├── reducers
  │   │   ├── app.js
  │   │   └── index.js
  │   │
  │   └── package.json
  │
  ├── .gitignore
  └── README.md

⭐️ Resources

🎩 Author

Atul Yadav - GitHub • Twitter

📜 License

Copyright (c) 2017 Atul Yadav http://github.com/atulmy

The MIT License (http://www.opensource.org/licenses/mit-license.php)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (68,065) 
react (5,164) 
nodejs (3,635) 
redux (1,151) 
mongodb (774) 
frontend (488) 
express (472) 
twitter (324) 
google-material (24) 

Find Open Source By Browsing 7,000 Topics Across 59 Categories

Advertising 📦 10
All Projects
Application Programming Interfaces 📦 124
Applications 📦 192
Artificial Intelligence 📦 78
Blockchain 📦 73
Build Tools 📦 113
Cloud Computing 📦 80
Code Quality 📦 28
Collaboration 📦 32
Command Line Interface 📦 49
Community 📦 83
Companies 📦 60
Compilers 📦 63
Computer Science 📦 80
Configuration Management 📦 42
Content Management 📦 175
Control Flow 📦 213
Data Formats 📦 78
Data Processing 📦 276
Data Storage 📦 135
Economics 📦 64
Frameworks 📦 215
Games 📦 129
Graphics 📦 110
Hardware 📦 152
Integrated Development Environments 📦 49
Learning Resources 📦 166
Legal 📦 29
Libraries 📦 129
Lists Of Projects 📦 22
Machine Learning 📦 347
Mapping 📦 64
Marketing 📦 15
Mathematics 📦 55
Media 📦 239
Messaging 📦 98
Networking 📦 315
Operating Systems 📦 89
Operations 📦 121
Package Managers 📦 55
Programming Languages 📦 245
Runtime Environments 📦 100
Science 📦 42
Security 📦 396
Social Media 📦 27
Software Architecture 📦 72
Software Development 📦 72
Software Performance 📦 58
Software Quality 📦 133
Text Editors 📦 49
Text Processing 📦 136
User Interface 📦 330
User Interface Components 📦 514
Version Control 📦 30
Virtualization 📦 71
Web Browsers 📦 42
Web Servers 📦 26
Web User Interface 📦 210