Skip to content

Commit

Permalink
using cookies entirely for the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
fazt committed Jun 2, 2023
1 parent c019bba commit 55bb6e2
Show file tree
Hide file tree
Showing 25 changed files with 898 additions and 1,683 deletions.
4 changes: 4 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PORT=4000
MONGODB_URI=mongodb://localhost/mern-tasks
TOKEN_SECRET=yoursecret
FRONTEND_URL=http://localhost:5173
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ docker-compose up -d
npm run dev
```

### Installation
### Deployment

```sh
git clone https://github.com/FaztWeb/mern-tasks-auth
cd mern-tasks-auth
npm i
```
npm run build
npm start
```

> You need to have a Mongodb database running
28 changes: 14 additions & 14 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@
"preview": "vite preview"
},
"dependencies": {
"@hookform/resolvers": "^2.9.11",
"axios": "^1.3.2",
"@hookform/resolvers": "^3.1.0",
"axios": "^1.4.0",
"dayjs": "^1.11.7",
"dayjs-plugin-utc": "^0.1.2",
"js-cookie": "^3.0.1",
"js-cookie": "^3.0.5",
"react": "^18.2.0",
"react-cookie": "^4.1.1",
"react-dom": "^18.2.0",
"react-hook-form": "^7.43.1",
"react-router-dom": "^6.8.1",
"zod": "^3.20.6"
"react-hook-form": "^7.44.3",
"react-icons": "^4.9.0",
"react-router-dom": "^6.11.2",
"zod": "^3.21.4"
},
"devDependencies": {
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.10",
"@vitejs/plugin-react": "^3.1.0",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.21",
"tailwindcss": "^3.2.6",
"vite": "^4.1.1"
"@types/react": "^18.2.8",
"@types/react-dom": "^18.2.4",
"@vitejs/plugin-react": "^4.0.0",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.24",
"tailwindcss": "^3.3.2",
"vite": "^4.3.9"
}
}
Loading

0 comments on commit 55bb6e2

Please sign in to comment.