All contributions are greatly appreciated!!
- Feature requests/enhancements
- Bug reports
- Questions/feedback
-
Fork the repository on GitHub.
-
Clone the forked repo to your local machine.
-
Create a new feature branch from master
-
Commit your changes
-
Push your changes back up to your fork.
-
When you're ready, submit a pull request so that we can review your changes
NOTE: If you have an existing fork, make sure to pull the latest changes from the upstream repository before working on a new contribution.
$ git remote add upstream https://github.com/lukePeavey/quotable.git
$ git pull upstream masterIf you are working on changes to the source code, you will want to run the server locally so you test your changes as you work.
Requirements
- Node >= 12.x
- NPM >= 6.x
- MongoDB
1. Create a database
You can install and run MongoDB locally, or use a cloud-based service like MongoDB Atlas (recommended).
Using MongoDB Atlas:
- Follow the instruction in the getting started guide to provision a new database.
- Open the "Connect" dialog and select "Connect to Your Application" to get the connection string.
2. Environment Variables
Create a file called .env in the root directory of the project.
Set MONGODB_URI to the connection string for your database.
# Example
MONGODB_URI=mongodb://<user>:<password>@ds013911.mlab.com:13911/quotable3. Install dependencies
$ npm run install4. Seed the database
This will populate your database with the sample data included in the repo.
$ npm run database:seed4. Start the Server
$ npm run start5. Running Tests
$ npm run test --watchAll