Discover incredible places and explore Begur like never before.
# Install Node.js first
npm i -g pnpm
Create the file .env.local
.
.env.example
file and update the variables.Install the project's dependencies:
pnpm i
Run development server:
pnpm dev
Open http://localhost:3000 with your browser.
[!CAUTION]
This guide is outdated! The migration to Neon was very fast and I didn't have time to standarize the procedure.
By default, the app will connect to stage database in Neon, but you can run it locally too.
Install docker.
Run the database in another console:
pnpm db:local:run-db
(Optional) Generate migrations if necessary:
pnpm db:generate
Run database migrations:
pnpm db:local:migrate
Run the app:
pnpm db:local:run-app
(Optional) Visualize the data with Drizzle Studio in another console:
pnpm db:local:studio
[!CAUTION]
This guide is outdated! The migration to Neon was very fast and I didn't have time to standarize the procedure.
pnpm db:generate
to generate the migrations.pnpm db:push
to upload the migrations to PlanetScale stage branch.
pnpm db:generate
, to generate the new sql file.pnpm db:push
, because it won't work. Instead, go to the Neon website, and in a SQL console paste the generated SQL.Besides that. These are the manual changes I did to the migration files:
CREATE EXTENSION IF NOT EXISTS postgis;
to the top"
) from Geometry(Point, 25831)
and Geometry(MultiLineString, 25831)
.Something else:
The script db:local:run-db
is not done, it is commented out.
Ask @mauriciabad for access.
These are the services we use related to the code: