Discover what lies in the data of BAR maps
Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
This project uses sqlite for data storage. To run the project locally you need to:
- Create
.env
file with NUXT_DB_URL and NUXT_DB_AUTH_TOKEN (if you have one). You can also use an sqlite file.NUXT_DB_URL=file:local.db
- Install dependencies.
- Run the server.
- Call /api/syncDatabase?highLength=true (Optionally you can edit number of days collected in
./server/utils/services/syncService.ts
)
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
# bun
bun run dev
Build the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview
Check out the deployment documentation for more information.