Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: smoother README chatapi notes (fixes #8189) #8190

Merged
merged 6 commits into from
Feb 6, 2025

Conversation

Mutugiii
Copy link
Member

@Mutugiii Mutugiii commented Feb 4, 2025

Fixes #8189

Add chatapi development notes

@Mutugiii Mutugiii linked an issue Feb 4, 2025 that may be closed by this pull request
Copy link
Member

@jessewashburn jessewashburn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This didn't work for me, and I got the below error. Don't I need to make changes to the package.json?

jesse@DESKTOP-N69C4E7 MINGW64 ~/ole/planet/chatapi (sync-with-master)
$ npm run dev

[email protected] dev
nodemon --exec ts-node src/index.ts

[nodemon] 2.0.22
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: ts,json
[nodemon] starting ts-node src/index.ts
Error: listen EADDRINUSE: address already in use :::5000
at Server.setupListenHandle [as _listen2] (node:net:1817:16)
at listenInCluster (node:net:1865:12)
at Server.listen (node:net:1953:7)
at Object. (C:\Users\jesse\ole\planet\chatapi\src\index.ts:98:8)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module.m._compile (C:\Users\jesse\ole\planet\chatapi\node_modules\ts-node\src\index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Object.require.extensions. [as .ts] (C:\Users\jesse\ole\planet\chatapi\node_modules\ts-node\src\index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Function.Module._load (node:internal/modules/cjs/loader:1019:12) {
code: 'EADDRINUSE',
errno: -4091,
syscall: 'listen',
address: '::',
port: 5000
}
[nodemon] app crashed - waiting for file changes before starting...

@Mutugiii
Copy link
Member Author

Mutugiii commented Feb 4, 2025

This didn't work for me, and I got the below error. Don't I need to make changes to the package.json?


**Note:** The dev chatapi runs on port 5000 similar to the production environment. Therefore, only one of them can run at a time. To deactivate the production chatapi run `docker stop planet_chatapi_1(or container id)`

This note is targeting that, I've moved it just above the node version note

@dogi dogi changed the title readme: chatapi development notes (fixes #8189) all: smoother README chatapi notes (fixes #8189) Feb 6, 2025
@dogi dogi merged commit 368d40c into master Feb 6, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

readme: add chatapi development setup instructions
4 participants