Giter Club home page Giter Club logo

nextjs-cookie-session-boilerplate's Introduction

🦄

Hi, I am a software engineer from Thailand.

nextjs-cookie-session-boilerplate's People

Contributors

zapkub avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

heyfirst

nextjs-cookie-session-boilerplate's Issues

Create README.md

Create Readme file and
write down how to start project in Development mode

Include

  • Pre installation
  • CLI Command

Authentication module endpoint list

All endpoint list that will use in Authentication modules

  • POST /api/user/login : Login with session

  • POST|GET /api/user/logout : Logout and remove session

  • GET /api/user : Get user info by session info

  • POST /api/user : Create user ( No session needed )

  • PUT /api/user : Update user info by session info

  • DELETE /api/user : remove user by session info

Ref from diagram #3

  • diagram must refer to these endpoints

POST /api/user : Create user ( No session needed )

Ref #4

Create API for receive register data urlencoded and json

Spec

  • Body field validation email must be a correct email
  • Body field validation password must contain at least 6 charactor
  • auto timestamp createdAt

Endpoint

POST /api/user

Body

email, password, confirmpassword, firstname, lastname * all string type

Response

201 on complete
400 on error or bad request

Test

  • fire http to POST /user with correct payload expect return 201 status

Add graphQL

Implement GraphQL เข้าไปใน node

Authentication UI Design

Client Authentication UI

  • /register Register page

    • include email, password, confirmpassword, firstname, lastname
  • /login Login page

    • include email, password
  • /user Account info page

    • include email, password, confirmpassword, firstname, lastname

Location

/resource/design/authentication

naming rules is all lowercase with dash (-) no space, no capital

Suggestion tools

Designing

Interactive prototype

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.