https://github.com/ullaskunder3/postgressql-nodejs-authentication
soon...
https://github.com/ullaskunder3/postgressql-nodejs-authentication
Last synced: 10 months ago
JSON representation
soon...
- Host: GitHub
- URL: https://github.com/ullaskunder3/postgressql-nodejs-authentication
- Owner: ullaskunder3
- Created: 2021-12-16T20:02:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-28T12:29:11.000Z (over 4 years ago)
- Last Synced: 2025-06-21T05:06:12.250Z (12 months ago)
- Language: JavaScript
- Size: 1.12 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Implementing authentication with nodeJs and PostgreSQL
## UI using html, css
example
| Register & Login | Register |
|----------------------|-----------------------|
|| |
- User flow
| | |
|------------------------|-----------------------|
| | |

!BUGS __authentication__
open
```bash
psql -U postgres -d postgres
```
creating user
```bash
CREATE USER ullasDB WITH PASSWORD 'ullasdb1' CREATEDB;
```
connecting to user db
```bash
psql -U ullasdb -d postgres
```
creating database
```bash
CREATE DATABASE nodeuserlogin;
```
listing the database
```bash
\l
```
connect to db
```bash
\c nodeuserlogin
```
creating table
```bash
CREATE TABLE users
```
```bash
nodeuserlogin-> (id BIGSERIAL PRIMARY KEY NOT NULL,
nodeuserlogin(> name VARCHAR(200) NOT NULL,
nodeuserlogin(> email VARCHAR(200) NOT NULL,
nodeuserlogin(> password VARCHAR(200) NOT NULL,
nodeuserlogin(> UNIQUE (email));
```
check
```bash
nodeuserlogin=> \d users
Table "public.users"
Column | Type | Collation | Nullable | Default
----------+------------------------+-----------+----------+-----------------------------------
id | bigint | | not null | nextval('users_id_seq'::regclass)
name | character varying(200) | | not null |
email | character varying(200) | | not null |
password | character varying(200) | | not null |
Indexes:
"users_pkey" PRIMARY KEY, btree (id)
"users_email_key" UNIQUE CONSTRAINT, btree (email)
```