Thank you for considering contributing to Algorithm-Finder! This is a small project, but every contribution helps make it better 🎀
If you'd like to work on an open issue, please: Comment on the issue to let us know you're taking it on. Provide detailed explanations for the approach you're taking. If you're unsure about something, ask questions within the issue thread. Collaboration is encouraged!
- Do
npm install
within the root project. - Create your own OAuth by going to Google Cloud Console, then click on Credentials and create a new one:
- Set Application type to Web Application.
- In both URI fields, enter
http://localhost:3000
(if you are running locally on port 3000). - After finishing, you’ll get your
Client ID
. Copy it.
- Create a
.env
file in the root directory of the project with the following variables:REACT_APP_GOOGLE_CLIENT_ID=<your-google-oauth-client-id>
,HOST=localhost
, andMONGODB_URI=<your-mongodb-connection-string>
. Replace<your-google-oauth-client-id>
with theClient ID
you copied earlier. For theMONGODB_URI
, use the connection string from MongoDB Atlas (it's free 🚀). If you're running MongoDB locally, use something likeMONGODB_URI=mongodb://localhost:27017/visitorCountDB
. Moreover, you need to specify where your localhost is running (e.g.,LOCAL_HOST_URI='http://localhost:3001'
) This .env ensures private information is stored securely. - Run the MongoDB server, do
node visitors-utility.js
within algorithm-finder/src. To run the application, executenpm start
within thealgorithm-finder/src
directory.
When you're ready to submit a fix or feature:
Fork the repository and create your branch from main
.
Include a clear description of the changes in your pull request.
Reference the issue number you're addressing.
As a token of appreciation, contributors whose pull requests get merged will receive a pretty t-shirt 🎉!
I am excited to see your contributions and look forward to collaborating!