This project is intended as a starting point for building Latitude applications. It is empty by default, but you can add your own data sources, models, and views to build a full-fledged application.
To start developing in this project, first ensure you have Node.js >= 18 installed. Then, install the Latitude CLI:
npm install -g @latitude-data/cli
After cloning the repository, run the following command to spin up the dev server:
latitude dev
This will start the server in development mode, and you can access the application at http://localhost:3000
.
The project is structured as follows:
queries
- This directory contains the SQL files that define the queries used to fetch data from the database.
views
- This directory contains the HTML files that define the layout and interface of the application.
Additionally you'll find a sources.yml
file in the queries directory. This file defines the data sources that the project uses. By default, it's set to use the DuckDB adapter to let you add CSV files as data sources. You can change this to use other adapters.
To find more about how to use Latitude, refer to the documentation.