New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@baseplate-sdk/web-app

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@baseplate-sdk/web-app

Customer web app for Baseplate

latest
Source
npmnpm
Version
5.11.0
Version published
Maintainers
1
Created
Source

Baseplate web app

Running locally

First, install pnpm and Docker. Ensure your NodeJS version is >=20.

# Create .env files
cp .env.example .env.dev

# Now fill in values of .env.dev

# Now pnpm install
pnpm install
pnpm run develop

# new terminal tab
pnpm exec sequelize db:migrate
pnpm exec sequelize db:seed:all

open http://localhost:7600

Visual Studio Code debugging

To debug the NodeJS server in Visual Studio Code, first start up the database and frontend:

pnpm run dev:vscode

Then click on "Run and Debug" in VS Code, and press Start for Develop Backend.

Connecting to local database

docker-compose exec db bash
psql baseplate
# show tables
\dt
select * from "Users";

Database migrations

Database migrations are done via sequelize cli. You must run them manually whenever there's a new migration. Make sure you are running pnpm run develop or pnpm run develop:db before attempting to run migrations.

# Run migrations
pnpm exec sequelize db:migrate

# Undo last migration
pnpm exec sequelize db:migrate:undo

# Undo all migrations
pnpm exec sequelize db:migrate:undo:all

# Create migration
pnpm exec sequelize migration:create --name INSERTNAMEHERE

Seed data

Seed data (sample user, etc) is created via sequelize cli. You must run them manually. Make sure you are running pnpm run develop or pnpm run develop:db before attempting to seed.

# Run seeds
pnpm exec sequelize db:seed:all

# Undo last migration
pnpm exec sequelize db:seed:undo

# Undo all seeds
pnpm exec sequelize db:seed:undo:all

# Create migration
pnpm exec sequelize seed:create --name INSERTNAMEHERE

Nuking your database

If you want to just nuke your database and start fresh, run the following commands:

docker-compose down -v
docker-compose up -d
sleep 1
pnpm exec sequelize db:migrate
pnpm exec sequelize db:seed:all

FAQs

Package last updated on 15 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts