full stack project with user authentication
Create a login App using a database and express. Our week project employs the use of cookies and jwts (using the npm module jsonwebtoken) to maintain a logged in state through different pages. Via a database, the username and password are stored and verified as correct using the bcryptjs npm module upon login. Coding will be assign to 2 different teams: front-end and back-end. Development will be TDD on both client and server side.
As a user I want to:
- login to my profile(see user example).
- add a new post on the timeline.
- clone Repo
- create a postrgres DB importing our db_schema.sql & db_data.sql
- "npm i" or "npm install"
- run with "npm run dev" for local testing
- user example: [email protected]
- password example: iannis
- edit posts.
- delete the posts.
- like posts.
- server.js
- public -front end team
- src
- router.js
- handler.js (could several files)
- database
- db_connection.js
- db_populate.js
- db_schema.sql
- db_data.sql
- queries
- test
2 tables:
- users
- id (auto incremental)
- username
- PASSWORD
- posts
- id (auto incremental)
- title
- content
- like BOOLEAN
- FOREIGN KEY (user_id) REFERENCES users (id)