Postr is a full stack reddit-style site that uses Node.js, React, and NoSQL databases originally forked from Deniz Basegmez's Asperitas.
- Fork, Update Deps, & Squash bugs
- Re-setup to my preferred best practices
- Setup Deployment
- Deploy Server to Cloud (Which one though? 🤔)
- Deploy client to GitHub sub-directory page
- node
- yarn (and/or npm)
- mongodb
- Mac easy mode with homebrew:
$ brew tap mongodb/brew $ brew install mongodb-community
- Otherwise checkout instructions here.
-
Clone this repository
-
Install server dependencies
$ cd server $ yarn
-
Install client dependencies
$ cd client $ yarn
- Start mongodb locally
- If on mac with homebrew
$ brew services start mongodb-community
- Otherwise (Windows installations may already be running a mongo db service read more here.)
$ mongod --dbpath="path/to/data/db"
- Start the server
$ cd server $ yarn start
- Start the client
$ cd client $ yarn start
- Browse to
http://localhost:3000/
Make sure mongodb is running before testing the server.
$ cd server
$ yarn test
$ cd client
$ yarn test
postr
├── .vscode
│ └── launch.json
├── .editorconfig
├── .gitattributes
├── .gitignore
├── .travis.yml
├── LICENSE.md
├── now.json
├── README.md
├── client
│ ├── public
│ ├── package.json
│ ├── yarn.lock
│ ├── src
│ │ ├── actions
│ │ ├── components
│ │ ├── config
│ │ ├── middleware
│ │ ├── reducers
│ │ ├── tests
│ │ └── util
│ ├── categories.js
│ ├── globalStyle.js
│ ├── index.js
│ ├── serviceWorker.js
│ ├── setupTests.js
│ ├── store.js
│ ├── style.css
│ └── theme.js
└── server
├── auth
├── controllers
├── models
├── src
├── test
├── app.js
├── config.js
├── index.js
├── package.json
├── routes.js
└── yarn.lock
This project is made available under the MIT License.