Skip to content

Commit

Permalink
chore: change the default port to 3000
Browse files Browse the repository at this point in the history
  • Loading branch information
wildan3105 committed Nov 18, 2024
1 parent 910ef85 commit 423d9fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ENV=local
TOKEN=your-token
TOKEN=your-token
PORT=3000
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ENV=local
An example of environment variable is provided [here](.env.example)

* Install dependency: `npm install`
* Start the app `<list-of-env-and-values> npm run start-dev` and go to `http://localhost:5000`
* Start the app `<list-of-env-and-values> npm run start-dev` and go to `http://localhost:3000`

## Feature tracker:
You can see the feature progress and pick up some issues in the [issues](https://github.com/wildan3105/github-langs/issues) or [projects](https://github.com/wildan3105/github-langs/projects) or [milestones](https://github.com/wildan3105/github-langs/milestones)
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const app = require('./api/app');

const server = app.listen(process.env.PORT || 5000, () => {
const server = app.listen(process.env.PORT || 3000, () => {
console.log(`github-langs running on port: ${server.address().port}`);
});

0 comments on commit 423d9fc

Please sign in to comment.