Giter Site home page Giter Site logo

atlasofconquestsbackendfinal's Introduction

Project Management Server

Routes

Visited Routes

Method Route Description
GET /api/visited Returns all visited countries
GET /api/visited/:countryId Returns a specific visited country
POST /api/visited Adds a new visited country
DELETE /api/visited/:countryId Deletes a visited country

Wishlist Routes

Method Route Description
GET /api/wishlist Returns all wishlist countries
GET /api/wishlist/:countryId Returns a specific wishlist country
POST /api/wishlist Adds a new wishlist country
DELETE /api/wishlist/:countryId Deletes a wishlist country

Auth Routes

Method Route Description
POST /auth/signup Creates a new user
POST /auth/login Logs the user
GET /auth/verify Verifies the JWT
GET /auth/users/:userId Get user details
PUT /auth/users/:userId Change user password
PUT /auth/forgot-password Forgot Password
PUT /auth/reset-password Reset Password
DELETE /auth/users/:userId Delete user account

Models

Visited Model

{
  country: String,
  userId: {type: Schema.Types.ObjectId, ref: 'User'}
}

Wishlist Model

{
  country: String,
  userId: {type: Schema.Types.ObjectId, ref: 'User'}
}

User Model

{
  email: String,
  password: String,
  resetLink: String,
  visited: [{type: Schema.Types.ObjectId, ref: 'Visited'}],
  wishlist: [{type: Schema.Types.ObjectId, ref: 'Wishlist'}]
}

atlasofconquestsbackendfinal's People

Contributors

anapatriciagomes avatar

Stargazers

 avatar

Watchers

 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.