Skip to content

mohit-chawla/haulers-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haulers-backend CircleCI

Backend for haulers app

Project Features

Backend

- Self generating API documentation
- Developers get email alerts on exceptions
- User login and Session Management using Spring Security
- Redis based faster session management
- Location based search support
- Unit Tests using JUnit

Devops

- Continuous Integration using Circle CI
- Automatic Deployments on heroku if build success and tests pass
- Health Checks and trace using Spring Actuator

Logging

- Tomcat Access Logs (with authentication headers) in target/tomcat-logs

Prerequisites :

  • Install and run mongodb
  • Install and run redis
  • set environment variables:
    • HAULERS_EMAIL [gmail user from which project developers receive alerts]
    • HAULERS_PASS [gmail password for above account]
    • MONGODB_URI [Uri for Mongodb connection]
    • REDIS_URL [Url for Redis-server]
    • AWS_BUCKET [AWS Bucket to upload images]
    • AWS_ACCESS [Access Key for AWS Bucket]
    • AWS_SECRET [Secret Key for AWS Bucket]

API Resources

GET

  • GET /customer
  • GET /customer/all
  • [GET /customer/signup]
  • [GET /customer/update/loc]
  • [GET /customer/images]
  • GET /driver
  • GET /driver/all
  • [GET /driver/signup]
  • [GET /driver/update/loc]
  • [GET /driver/images]
  • [GET /job]
  • [GET /job/all]
  • [GET /job/customer]
  • [GET /job/driver]
  • [GET /job/driver/respond]

POST

GET /customer

Example: http://www.mohitchawla.in

Response body:

{
    "response": "something"
}

Support :

License :

The code is available at github [project][home] under MIT license.

About

Backend for haulers app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published