Skip to content

🍪 Exploring and playing around with cookies on the client and the server

Notifications You must be signed in to change notification settings

sitek94/cookies-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍪 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

Topics

Resources

Stars

Watchers

Forks