sitek94 / cookies-playground

πŸͺ Exploring and playing around with cookies on the client and the server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸͺ Cookies Playground

A simple playground project, where I explore and experiment with HTTP Cookies.

cookies plaground preview

Why?

In my other project I wanted to implement JWT authentication, with Refresh Token stored in HTTP only cookie. However, when I started working on that, I realized that I don't know that much about cookies, not to mention HTTP only cookies πŸ™Š

What?

  • /client - simple React app, with visualization of cookies and ability to set them.
  • /server - simple Express server, which allows us to see HTTP only cookies.

How?

# Clone the repository
git clone https://github.com/sitek94/cookies-playground.git

# Install dependencies
cd cookies-playground
npm install

# Start the server
npm run start:server 

# Start the client
npm run start:client

Server

The server is listening on port 3333: http://localhost:3333

Client

The app is running on port 3000: http://localhost:3000

Create React App

Client was bootstrapped with Create React App.

About

πŸͺ Exploring and playing around with cookies on the client and the server


Languages

Language:JavaScript 87.5%Language:HTML 7.2%Language:CSS 5.2%