Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Use port 8080 instead of port 5000 #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand All @@ -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`.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();