The user has to register and then login to use the app, so that it can be made available to many users.
The user is authenticated with JSON Web Token. Once authenticated, a authentication token is generated, this authentication token is stored as cookie. This cookie contains the email address of the user. Whenever the user makes a request to the server, the authentication token is verified with JWT.
-
- CREATE todo items.
-
- READ todo items.
-
- DELETE todo items.
The database used in this app is Postgresql. This database is hosted at https://www.elephantsql.com/
-
- users table : For storing users information.
-
- todos table : For storing todos of all sers.