This is a monorepo containing both the Express API and Next.js client.
This app was created as an assignment for Cyberscope.
Link to live server is here.
Clone the repository:
git clone https://github.com/geovla93/crypto-tracker.git
Navigate into the project. Create a .env file inside server directory, and a .env.local file inside client directory.
// .env example
COIN_GECKO_API_URL=https://api.coingecko.com/api/v3
CLIENT_APP_URL=http://localhost:3000
PORT=8080
// .env.local example
NEXT_PUBLIC_API_URL=http://localhost:8080
Install dependencies for both projects.
From the root of the monorepo run:
yarn dev
There has been implemented some basic testing for both client and server. To run the tests from the root of the monorepo run:
yarn test
If you wish to build the projects just run from the root of the monorepo:
yarn build
and then
yarn start
to start the project.