Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#159327500 Create POST /auth/signup endpoint #23

Merged
merged 2 commits into from
Aug 1, 2018

Conversation

olusoladavid
Copy link
Owner

@olusoladavid olusoladavid commented Aug 1, 2018

What does this PR do?

Adds an API endpoint to the app to help users create an account and the receive an authentication token

Description of Task to be completed

  • Create SQL queries
  • Create POST endpoint
  • Validate user inputs
  • Check for possible existing user
  • Return JWT

How should this be manually tested?

  • Pull branch into your local repo
  • Run npm run dev in your local machine

Using Postman:
Send a POST request to /auth/signup with JSON body using the sample below:

{
"email": "validemail@gmail.com",
"password": "apassword"
}

What are the relevant pivotal tracker stories?

#159327500

- Create SQL queries
- Create POST endpoint
- Validate user inputs
- Check for possible existing user
- Return JWT

[Delivers #159327500]
@olusoladavid olusoladavid added the enhancement New feature or request label Aug 1, 2018
- create validate.js file
- move all middleware validation code into validate.js
@olusoladavid olusoladavid merged commit c838fd2 into develop Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant