Skip to content

An app designed to allow users to keep track of when to water their plants

License

Notifications You must be signed in to change notification settings

Build-Week-Water-My-Plants-tt-webft-20/node-back-end

Repository files navigation

Welcome to Water-My-Plants 👋

Version License: MIT

Ensuring that all your plants are consistently watered is actually pretty difficult. Water My Plants is an app that helps to solve those problems. Ensuring that all your plants are consistently watered is actually pretty difficult. Water My Plants is an app that helps to solve those problems.

Demo

Prerequisites

  • node 14.16.0
  • npm 6.14.11

Install

npm install

Usage

npm run start

Run tests

npm run test

Author

👤 Stone Cogswell

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

Node Back-End - Build Week - Water My Plants tt_wbft_20 - Stone Cogswell

[Endpoints] Base URL: https://water-my-plants-back-end.herokuapp.com/api

  • This url will be the beginning of all endpoints. Add the following endpoints below to the base URL.

[Register]

  • No token is required when registering

  • Example: https://water-my-plants-back-end.herokuapp.com/api/auth/register

    • [POST] [Register] - Register a new user

      • Endpoint: /auth/register

      Fields:
      "user_username" - string, unique (MUST not match any other registered username), REQUIRED
      "user_password" - string, REQUIRED
      "user_phone_number" - number, REQUIRED

[Login]

  • Token required for login

  • Example: https://water-my-plants-back-end.herokuapp.com/api/auth/login

    • [POST] [Login] - Login an already registered user to receive a token

      • Endpoint: /auth/login

      Fields:
      "user_username" - string, MUST match a registered username, REQUIRED
      "user_password" - string, MUST match a registered password with registered username, REQUIRED

[Users]

[Plants]

About

An app designed to allow users to keep track of when to water their plants

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published