Skip to content

Tavelors/OddJobs-Backend

Repository files navigation

Odd Jobs Backend

Odd Jobs Backend

This is the frontend part of our group project, Odd Jobs, a mobile app to help connect members of the community who require, or wish to offer, help with odd jobs. Users have the ability to either post a job, or respond to a posted job. There is also an integrated chat feature which enables users to communicate about a job. The user’s location is pinned to a map which displays jobs in the surrounding area.

The repo for the frontend can be found here:

https://github.com/akin-fagbohun/OddJobs-Frontend

screenshot

Built With

  • mongoDB
  • node js
  • mongoose
  • express
  • jest/TDD
  • colors

Links

Hosted version at: Odd-Jobs-Backend

Installation Instructions

To install and run tests locally:

1. Install MongoDB

sudo service mongodb start
  • The server should be running on your machine locally at 127.0.0.1:27017

2. Install Project depencences

npm i

3. Create Databases

  • The project has development and test databases
  • To create them:
    • cd into backend/db/
    • run the following command
    mongodb < db_setup.js
    • This will create empty databases. The seed function (ran before tests) will populate them

4. Create Environment Variables

  • For the server to find the local databases, environment variables will need to set up.
  • Create 2 different files, one for the development db and one for the test db:

.env.development

  MONGO_URI = mongodb://127.0.0.1:27017/oddjobs

.env.test

MONGO_URI = mongodb://127.0.0.1:27017/oddjobs_test

5. Running Tests

  • Test Database Data is reseeded before every test
  • To run tests:
npm test

6. Running the server

  • To run the server locally:
npm start

Authors

👤 Authors

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors