dust-books / dust-server

Your digital collection of eBooks and Digital Comics
1 stars 1 forks source link

Feature: Allow a user to sign up #4

Open bradcypert opened 2 weeks ago

bradcypert commented 2 weeks ago

We should modify the user routes to handle user sign up. The user route handler for this already exists, but is empty. This should handle the incoming request, perform some validation, and then write the data to SQLite.

Test Case:

curl -d '{"displayName":"Dustybottoms", "email":"test@test.com", password: "encryptMePls"}' -H "Content-Type: application/json" -X POST http://localhost:4001/users

This should create a new user in the SQLiteDB with displayName "Dustybottoms", email "test@test.com", and a password that is the encrypted version of their provided password.