Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
amreshh committed May 4, 2022
0 parents commit 203a737
Show file tree
Hide file tree
Showing 15 changed files with 4,087 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"image": "docker.io/node:18-alpine3.14",
"remoteEnv": {
"NODE_OPTIONS": "--openssl-legacy-provider"
},
"runArgs": [
"--network=host",
"--userns=keep-id"
],
"shutdownAction": "stopContainer",
"extensions": [
"CoenraadS.bracket-pair-colorizer-2",
"mhutchie.git-graph",
"eamodio.gitlens",
"redhat.vscode-xml",
"VisualStudioExptTeam.vscodeintellicode",
"Vue.volar"
]
}
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules
/*.mp4
/*.mov
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM docker.io/node:18-alpine3.14
LABEL org.opencontainers.image.source=https://github.com/amreshh/weather
WORKDIR /app
ADD . /app/
RUN npm install
EXPOSE 3000
ENTRYPOINT [ "node", "src/app.js" ]
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# weather app
## Build Container
Container can be built with:
```
podman build -t ghcr.io/amreshh/weather:0.0.1 .
```

Run the container (exposing port 3000)
```
podman run -p 3000:3000 ghcr.io/amreshh/weather:0.0.1
```
8 changes: 8 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const constants = {
openWeatherMap: {
BASE_URL: "https://api.openweathermap.org/data/2.5/weather?q=",
SECRET_KEY: "0bcad45d73b87bbda550414ca7e40c7a"
}
}

module.exports = constants;
Loading

0 comments on commit 203a737

Please sign in to comment.