Skip to content

Commit d3fa93e

Browse files
author
Abu Masyail
committed
chore: open in idx
1 parent 4e3b6ed commit d3fa93e

File tree

4 files changed

+129
-134
lines changed

4 files changed

+129
-134
lines changed

.idx/dev.nix

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{ pkgs, ... }: {
2+
channel = "stable-23.11";
3+
4+
packages = [
5+
pkgs.nodejs_20
6+
pkgs.nodePackages.nodemon
7+
];
8+
9+
env = {
10+
ENABLE_RATE_LIMIT = true;
11+
};
12+
13+
idx = {
14+
extensions = [
15+
"EditorConfig.EditorConfig"
16+
"ms-vscode.vscode-typescript-next"
17+
"oderwat.indent-rainbow"
18+
"wix.vscode-import-cost"
19+
"kamikillerto.vscode-colorize"
20+
"aaron-bond.better-comments"
21+
];
22+
23+
workspace = {
24+
onCreate = {
25+
npm-install = "npm install";
26+
};
27+
};
28+
};
29+
}

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ The fastest way to use it privately on PaaS available
6363
<img alt="Deploy with Render" src="https://render.com/images/deploy-to-render-button.svg" height="32" />
6464
</a>
6565

66+
### Open in
67+
68+
<a href="https://idx.google.com/import?url=https%3A%2F%2Fgithub.com%2Fsooluh%2Fkodepos">
69+
<picture>
70+
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.idx.dev/btn/open_light_32.svg">
71+
<source media="(prefers-color-scheme: light)" srcset="https://cdn.idx.dev/btn/open_dark_32.svg">
72+
<img height="32" alt="Open in IDX" src="https://cdn.idx.dev/btn/open_purple_32.svg">
73+
</picture>
74+
</a>
75+
6676
## Endpoints
6777

6878
### Search by Place Name

bin/app.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ const app = async () => {
4747
}
4848

4949
const address = await app.listen({ host: '0.0.0.0', port: Number(process.env.PORT || 3000) })
50-
console.info('Listen to requests on', address)
50+
51+
console.info(`Listen to requests on ${address}`)
52+
console.info(`Test here: ${address}/search?q=danasari`)
5153
} catch (e) {
5254
console.error(e)
5355
}

0 commit comments

Comments
 (0)