diff --git a/README.md b/README.md index c8b6b87..63839e9 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ Follow along [here](https://docs.osohq.com/node/getting-started/quickstart.html) ## Make some changes If you visit -[http://localhost:5000/repo/gmail](http://localhost:5000/repo/gmail), you +[http://localhost:8080/repo/gmail](http://localhost:8080/repo/gmail), you should get a 200 response. If you visit -[http://localhost:5000/repo/react](http://localhost:5000/repo/react), you +[http://localhost:8080/repo/react](http://localhost:8080/repo/react), you should see a 404. Add this code to `main.polar`: @@ -23,6 +23,6 @@ has_permission(_user: User, "read", repository: Repository) if ``` Now, when you visit -[http://localhost:5000/repo/react](http://localhost:5000/repo/react), you should +[http://localhost:8080/repo/react](http://localhost:8080/repo/react), you should see a proper 200 response, because the `react` repository is marked as public in `models.js`. diff --git a/server.js b/server.js index f4621ea..f724d2b 100644 --- a/server.js +++ b/server.js @@ -27,7 +27,7 @@ async function start() { } } }); - app.listen(5000, () => console.log("Server running on port 5000")); + app.listen(8080, () => console.log("Server running on port 8080")); } start();