Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cerbos/getting-started-node

https://www.youtube.com/watch?v=caqUh6i3vVQ
https://github.com/cerbos/getting-started-node

Last synced: 6 days ago
JSON representation

https://www.youtube.com/watch?v=caqUh6i3vVQ

Awesome Lists containing this project

README

        

# Getting Started - Node.js

An example application of integrating [Cerbos](https://cerbos.dev) with an [Express](https://expressjs.com/) server.

- [Try online with the Cerbos playground](https://play.cerbos.dev)
- [Explore demo repositories](https://github.com/cerbos)
- [Read the documentation](https://docs.cerbos.dev)
- [Subscribe to our newsletter](https://cerbos.dev/subscribe)
- [Join the community on Slack](http://go.cerbos.io/slack)

## Dependencies

- Node.js
- Docker for running the [Cerbos Policy Decision Point (PDP)](https://docs.cerbos.dev/cerbos/latest/installation/container.html)

## Getting Started

1. Start up the Cerbos PDP instance docker container. This will be called by the express app to check authorization.

```bash
cd cerbos
./start.sh
```

2. Install node dependencies

```bash
npm install
```

3. Start the express server

```bash
npm run start
```