Skip to content

access control

Somkiat Puisungnoen edited this page Mar 24, 2024 · 1 revision

Access control workshop

Step 1 :: Build

$git clone https://github.com/up1/workshop-nodejs-secure.git
$cd workshop-nodejs-secure
$cd src/a01-access-control
$npm i

Step 2 :: Start server

$npm start

> [email protected] start
> nodemon index.js

[nodemon] 3.1.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node index.js`
Starting server
Listening on port 3000
Available routes:

╔═══════════╤═══════════╗
║ Method(s) │ Path      ║
╟───────────┼───────────╢
║      POST │ /login    ║
║       GET │ /profile  ║
║      HEAD │ /profile  ║
║      POST │ /register ║
╚═══════════╧═══════════╝

Fastify server is running

Step 3 :: Import file /postman/OWASP Top Ten Workshop.postman_collection.json to Postman

Let's workshop