Install locally
Clone Tipoff
Go to newly created Tipoff directory
Install Tipoff API Server Dependencies
Configure environment variables
- Create a new empty file and name it as .env and place it under tipoff directory
- Copy everything from .env.default file and paste it in .env file
- Set all the environment variable properties appropriately in .env file
NODE_ENV in local is typically development
MONGODB_URI is the connection url to your local mongoDB instance where Tipoff DB will be located
MONGODB_URI_TEST is the connection url for running tests. This URL must connect to a different DB than the one in MONGODB_URI since all data is cleaned up after tests are complete
TIPOFF_API_PORT is the port on which the Tipoff Server will serve the requests
JWT_SECRET_KEY can be any string and is used to encrypt the passwords before storing it in the DB
NOTIFIER_API_KEY_SENDGRID is used to send email notifications. Key can be generated using a free plan at https://sendgrid.com/pricing/
NOTIFIER_FROM_EMAIL_SENDGRID is from email address that is verified on SendGrid and can be used to send Tip email notifications
After populating all enviroment variables, your resultant file will look something like this
Start Tipoff Server
Tipoff API server is ready to receive Tips @ the TIPOFF_API_PORT
Install and Run the Tipoff UI to View Tips
- In a new terminal tab or window, go to the Tipoff directory
- drill down into react-app directory
- Install the react application dependencies
- If your TIPOFF_API_PORT is different from 5000 then change it in the package.json of React App. If your port is 5000 then you can skip this step
Find the following line in tipoff/react-app/package.json
and change it to
- Start the react-app Within the react-app directory, run
You can now navigate to Tipoff UI at http://localhost:3000 or your own react-app port