Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 978 Bytes

README.md

File metadata and controls

41 lines (26 loc) · 978 Bytes

BARdle

Powered by create-svelte. Uses MongoDB as the database.

Developing

Install dependencies with npm install (or pnpm install or yarn). Then, you must create a .env file to store the URI of the database:

touch .env
vim .env # or use any other editor

The .env file has the following structure:

MONGODB_URI=<your URI here>

Note, the URI should also point to a specific database (e.g., mongodb+srv://:@.jdlnt.mongodb.net/).

To start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version:

npm run build

You can preview the production build with npm run preview.