Skip to content

aelittaezugbaya/Jobber

Repository files navigation

Jobber Build Status

Preparations(if you haven't already)

  1. install node.js https://nodejs.org and click the Install button
  2. install mongoDB http://mongodb.org and click Download MongoDB.
  3. install Nodemon
npm install nodemon -g
  1. clone the project
git clone https://github.com/aelittaezugbaya/Jobber.git
  1. go to the project folder
  2. run npm install or npm i

How to start the app

How to use:

npm run [script name]

We have several npm scripts:

  • start: launches front-end in development mode, it will watch for changes in folder frontend and refresh the page
  • backend-dev: launches back-end in development mode, it will watch for changes in backend code and relaunch server
  • backend: launches back-end
  • build: builds front-end and outputs results to folder public

Note: Folder public is not included in repository, you have to run npm run build to get it.

Default ports

Front-end

If you run npm start then front-end will run on http://localhost:8080

Back-end

If you run npm run backend or npm run backend-dev then back-end will run on http://localhost:3000. Built front-end from folder public also is hosted on this port.

###Proxy If you run npm start and npm run backend/npm run backend-dev then requests to http://localhost:8080/api will redirected to http://localhost:3000/api.

API Reference

Authentication (JWT Not Required)

POST /api/auth/login

  • Email
  • Password

POST /api/auth/register

  • FullName
  • Email
  • DateOfBirth
  • Gender
  • Password
  • Lat
  • Lon

Feedback Object

GET /api/feedback/:ReceiverId

  • UserSourceID
  • UserReceiverID
  • Comment
  • Rating

POST /api/feedback

  • UserSourceID
  • UserReceiverID
  • Comment
  • Rating

Service Object

GET /api/service/:id

  • UserOwnerID
  • IsRequest
  • Subject
  • Category
  • Location
    • type
      • type
    • coordinates
      • Lon
      • Lat
  • Gender
  • Description
  • Price
  • Status
  • DateCreated

GET /api/service/:lat/:lon/:radius

  • all service objects within the radius

POST /api/service

  • UserOwnerID
  • IsRequest
  • Subject
  • Category
  • Lon
  • Lat
  • Gender
  • Description
  • Price

PUT /api/service/:id

  • UserOwnerID
  • IsRequest
  • Subject
  • Category
  • Lon
  • Lat
  • Gender
  • Description
  • Price

User Object

GET /api/user/:id

  • Rating
  • FullName
  • Email
  • Description (User description defaults to 'Hello, I am .' upon registration)
  • Hash
  • Salt
  • DateOfBirth
  • Gender
  • Status

PUT /api/user/:id

  • FullName
  • DateOfBirth
  • Gender
  • Description

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published