Giter Club home page Giter Club logo

mongo-test's Introduction

ROUTES

Method URL Description
GET /login redirects to / if user logged in. Renders auth/login
POST /login redirects to /user-profile if user logged in
body:
    - username
    - password
Method URL Description
GET /signup Renders auth/signup
POST /signup Redirects to /user-profile
body:
    - name
    - last name
    - username
    - email
    - password
Method URL Description
GET /user-profile renders user profile. If the user is not logged in, render homepage.
GET /edit/user-profile/Id renders user profile edit page. If the user is not logged in, render homepage.
POST /edit/user-profile/Id update user profile. Redirect /user-profile
POST /logout redirects to /
body:
    - pic
    - name
    - last name
    - username
    - email
    - password
    - pets
Method URL Description
GET /pets renders user's pets
GET /pet-profile/Id renders pet profile page
GET /edit/pet-profile/Id renders pet profile edit page
POST /edit/pet-profile/Id update pet profile. Redirect /pet-profile:Id
POST /petDelete/Id delete a pet profile. Redirect to /user-profile
POST /logout redirects to /
body:
    - pic
    - name
    - type
    - breed
    - birth date
    - age
    - comments
Method URL Description
GET /appointment renders user's appointments
GET /appointment/Id renders appointment page
GET /edit/appointment/Id renders pet profile edit page
POST /edit/appointment/Id update appointment. Redirect /user-profile
GET /create/appointment renders appointment create page
POST /create/appointment saves appointment. Redirect /user-profile
POST /logout redirects to /
body:
    - title
    - pet
    - vet's name
    - date
    - time
    - comments

Models

  1. This is the 1st element of the list
  2. This is the 2nd element of the list
    User model
    - username: String, required
    - first name: String, required
    - last name: String, required
    - password: String, required
    - image: String
    - pets: Array ObjectID
    
  3. This is the 3rd element of the list
  4. This is the 4th element of the list
    Pet model
    - name: String, required
    - owner: ObjectID
    - type: String, required
    - breed: String, required
    - comments: String
    - birth date: Date, required
    - appointments: Array ObjectID
    
  5. This is the 5th element of the list
    Appointment model
    - title: String, required
    - vet: String, required
    - pet: ObjectID, required
    - date: Date, required
    - time: Date, required
    - comments: String
    

mongo-test's People

Contributors

x8a avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

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.