https://github.com/osohq/oso-express-tutorial
https://github.com/osohq/oso-express-tutorial
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/osohq/oso-express-tutorial
- Owner: osohq
- Created: 2021-06-18T16:23:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T13:58:19.000Z (7 months ago)
- Last Synced: 2025-01-13T07:12:55.754Z (3 months ago)
- Language: TypeScript
- Size: 36.1 KB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a tutorial app designed to help you learn about integrating Oso into your system and writing authorization rules. The app uses the Express framework for Node, and is written in Typescript. It also includes a small sqlite database.
To spin up the app, ensure you have [node](https://nodejs.org/en/) and [sqlite3](https://www.sqlite.org/index.html) installed on your system, then follow these steps:
1. Install project dependencies.
```
npm install
```2. Instantiate the database.
```
sqlite3 expenses.db ".read expenses.sql"
```3. Start the server.
```
npm run start
```When the server starts, you should see output similar to this:
```
The application is listening on port 3000!
```The project does not include Oso yet -- we leave that part up to you! Please [follow the tutorial](https://docs.osohq.com/node/getting-started/application.html) to get started.