Social media web application, server and deployment code
The web app is built on facebook incubator's create-react-app and is kept up-to-date with their monthly-ish releases.
This project is expected to work on macOS/Linux/Windows on node's LTS release (6.X.Y) and latest npm.
npm i -g npm # update npm
npm i # install server
npm run client-install # install client
npm run dev # run dev environment
Server lives in the main directory. Client lives in '/client'. Server and client have separate build steps.
Passport Strategy for JWT Authentication
Tests use create-react-app's default framework jest.
There's not many tests at the moment. Only smoke tests have been implemented. But here's the general plan:
- Smoke tests for each component that just render that component.
- Unit tests for components that get used heavily.
- Integration tests that can run on deploys.
Redux Developer Tools for your preferred browser is required to build the project.
In order for the development build to work, you must do the following:
-
Create a free account at MLab and obtain your mLab key
-
Create a development build keys file 'keys_dev.js' in '/config' with the follow code:
module.exports = {
mongoURI:
'mlab key here',
secretOrKey: 'secret'
};
- Replace 'mlab key here' with your account's mlab key.