https://github.com/drenther/test-server
test server code for amtica
https://github.com/drenther/test-server
Last synced: 3 months ago
JSON representation
test server code for amtica
- Host: GitHub
- URL: https://github.com/drenther/test-server
- Owner: drenther
- Created: 2018-11-11T13:06:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-11T13:09:26.000Z (over 6 years ago)
- Last Synced: 2025-02-24T16:30:06.379Z (3 months ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# basic express server with auth system
- basic signup and login system (name, email, password)
- naive double cookie submit for CSRF protection
- httpOnly auth cookie for basic XSS protection
- one public GET route and one private GET route## setup
create a .env file in the root directory with following key value pair
```env
PORT
MONGO_URL
JWT_SECRET
JWT_ISSUER
JWT_AUDIENCE
```install dependencies
```shell
npm install
```run dev server
```shell
npm run dev
```