Giter Site home page Giter Site logo

kompis's People

Contributors

bromle avatar espenk avatar jessewehavetocook avatar pckv avatar

Watchers

 avatar  avatar

kompis's Issues

Cleanup user controller and service

  • Remove endpoints that are not needed
  • Add checks where needed (such as existing email when making a new user)
  • Use user object instead of id
  • Endpoints like delete should be done on the logged in user, not on a specified user / id

Document API and refactor controllers

Currently, the API is inconsistent and does not have a clear definition of how it should be used. We should plan and document the API in its entirety.

Create PostgreSQL server

Create database on the autodeploy server and set up a project user, and a user for each member of the group.

Implement login system with JSON web token

service and controller will need the following functionality:

  • Create user
  • Login, which adds the JSON web token as a response and returns the user object
  • Get the current logged in user
  • Logout?

Fix inconsistencies in the API documentation and controllers

  • /users/authorize → documentation missing 404 and 403. Remove 409

  • /users/{id} → returns 409 instead of 404

  • /users/current → documentation missing 404

  • /listings/{id}/unassign → typo: replace 409 with 403

  • Add 403 documentation for all /listings endpoints

Create Listing service and controller

Functionality:

  • Create a new listing
  • Delete a listing
  • Deactivate/activate a listing
  • Get a listing
  • Get all listings
  • Assign logged in user to a listing

Create a Listing entity and repository

A listing can be made either as a driver, or as a passenger. The following attributes are required

  • boolean for 'as a driver' or 'as a passenger'
  • location (either two fields as latitude and longitude or a proper data class with math support)
  • title
  • description
  • owner
  • assignee (for driver listings, assignee will be the passenger and vice versa)

Validate fields in entities

Known issues:

  • Listing can be created with no title
  • Users can be created with no email, password and display name

Create readme

Create a readme with some information about the project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.