Giter Site home page Giter Site logo

backend-1's Introduction

backend

Build week for WEB Unit 4 Node Build

Prerequisites

Download/Install SQLite Studio

Will need a REST client like Insomnia

Create [Heroku] account for production deployment (https://www.heroku.com/)

Link to teams backend deployment to Heroku:

https://droneon.herokuapp.com

CRUD Endpoints

| POST | /api/auth/register | Creates a user using the information sent inside the body of the request|

The API should return:

{

full_name: "",
email: "",
password: ""

}

| POST | /api/auth/login | Use the credentials sent inside the body to authenticate the user. If login fails, respond with the correct status code and the message: 'Please try again'|

The API should return:

{ message: "Welcome....." // with registered email address. }

| POST | /api/users/add-drone | Use the credentials sent inside the body to add a drone to database. If fail, respond with the correct status code and the message: 'Error adding drone.'|

The API should return: { Name: "", Model: "", Brand: "", Purpose: "", ExperienceLevel: "", Cost: , Link: "", // photo of drone Photographer: "" }

| POST | /api/users/availabledrones | Use the credentials sent inside the body to add available drones to database.|

The API should return:

{ "availabledrones": [ 10 // the number of drones available to rent ] }

| POST | /api/users/renteddrones | Use the credentials sent inside the body to add rented drones to database.|

The API should return:

{ "renteddrones": [ 3 // the number of drones rented ] }

| GET | /api/users | If the user is logged in, respond with an array of all the users contained in the database. If the user is not logged in respond with the correct status code and the message: 'Please try again'|

The API should return full list of registered users: { full_name: "", email: "", password: "" }

| GET | /api/users/drones | Once drones are added to database, respond with an array of all drones contained in the database. If drone is not listed in database, respond with 500 status code |

The API should return: { Name: "", Model: "", Brand: "", Purpose: "", ExperienceLevel: "", Cost: , Link: "", // photo of drone Photographer: "" }

GET | /api/users/id/user | Respond with selected id/user contained in the database. If the user is not listed in database, respond with the correct status code and the message: 'Could not find user.'|

The API should return selected registered user: { full_name: "", email: "", password: "" }

| PUT | /api/users/users/:id | Updates a given user id|

The API should return:

{ "updated": 1 // Indicating the selected user id information has been updated. }

| DELETE | /api/users/users/:id | Removes a given user and all associated data|

The API should return:

{ "removed": 1 //Indicating the selected user id information has been deleted. }

Team trello link (https://trello.com/b/MY9LDHG7/use-my-tech-stuff) A visual overview of what is being worked on and who is working on it.

backend-1's People

Contributors

nortagemliahlla avatar hammettdev 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.