Skip to content

Commit

Permalink
Merge pull request #65 from wajeht/feature/500-call-limit-language
Browse files Browse the repository at this point in the history
feature/500-call-limit-language
  • Loading branch information
wajeht authored Sep 23, 2023
2 parents b6a0c4e + f5859a1 commit 4d83182
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ node_modules
dist
deploy.sh
README.md
mongo-data
coverage
6 changes: 4 additions & 2 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM node:alpine

RUN apk --no-cache add curl

ENV ENV development

WORKDIR /usr/src/app
Expand All @@ -11,8 +13,8 @@ COPY ./ ./

RUN npm install

EXPOSE 8080
EXPOSE 8082

CMD ["npm", "run", "dev"]

HEALTHCHECK --interval=30s --timeout=15s CMD node healthcheck.js
HEALTHCHECK CMD curl -f http://localhost:8082/api/health-check || exit 1
6 changes: 3 additions & 3 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
context: ./
dockerfile: ./Dockerfile.dev
ports:
- '8080:8080'
- '8082:8082'
volumes:
- ./:/usr/src/app
- /usr/src/app/node_modules
Expand Down Expand Up @@ -69,13 +69,13 @@ services:
- ME_CONFIG_MONGODB_AUTH_DATABASE=close-powerlifting
- ME_CONFIG_MONGODB_ADMINUSERNAME=username
- ME_CONFIG_MONGODB_ADMINPASSWORD=password
- VCAP_APP_PORT=8082
- VCAP_APP_PORT=8086
# - ME_CONFIG_BASICAUTH_USERNAME=username # enable basic auth for ui
# - ME_CONFIG_BASICAUTH_PASSWORD=password
depends_on:
- mongodb
ports:
- '8082:8082'
- '8086:8086'
networks:
- close-powerlifting-network

Expand Down
12 changes: 12 additions & 0 deletions src/views/pages/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,18 @@ <h2>Step 3</h2>
});
const data = await res.json();</code></pre>
Enjoy!

<p>
You will receive a quota of 500 API calls every month, and this limit will reset at the
beginning of each new month. If you need more than 500 calls, please request additional
resources via our
<a
class="font-bold hover:text-slate-200"
href="https://close-powerlifting.jaw.dev/contact"
target="_blank"
>contact page ↗️</a
>.
</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 4d83182

Please sign in to comment.