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

Support dev mode for the server with logging #13

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

timurista
Copy link

@timurista timurista commented Dec 9, 2021

You can run yarn dev to support getting details console logs, infos etc. when running locally. Supresses console output in prod.
image

❯ yarn dev
yarn run v1.22.17
$ NODE_ENV=dev node index.ts
> joe-api running! (:3000)
  <-- GET /priceavax/avax
logics
found in token list [ 'aavaxb', 'ape-x', 'apein', 'aurora', 'avax' ] ...
  --> GET /priceavax/avax 304 8ms 

Also adds logging for response / request in dev and production mode.

And I sorted the json token list (for easier access) and added smartr coin contract

@vercel
Copy link

vercel bot commented Dec 9, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/traderjoe/joe-api/7NQCeCFeDnoPMCRXeFkwWFfuYMk9
✅ Preview: Failed

[Deployment for fcf7734 failed]

@timurista
Copy link
Author

@cryptofish7, @LouisMeMyself could one of you review? This will help devs to work on the API in development mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant