This is a project to help track fuel efficiency for cars. It is built off the node-turborepo-starter template.
This Turborepo includes the following packages/apps:
docs
: All documentation for each service.web
: Website for more information about the project.ui
: a stub React component library shared by both ui applications
Create .env
file from apps/main/.env.example
. Set the following:
APP_KEY= # External api key
PROXY_URL= # Proxy url for external webhooks to use
Create .env
file from apps/journey-service/.env.example
. Set the following after create a HERE app:
HERE_APP_ID= # Generated when creating an app
HERE_APP_KEY= # Generated when creating an api key under the app
Run the following command:
npm i
To build all apps and packages (including sqlite database) run the following command:
npm run build
Create the database with
node apps/main/ace migration:run
See https://docs.adonisjs.com/guides/ace-commandline for more ace commands
To develop all apps and packages, run the following command:
npm run dev
echo '\n\nmain'
curl localhost:3333/api/health
echo '\n\njourney service'
curl localhost:3010/api/health