Skip to content

mateuszJS/visual-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Start development

  1. npm i
  2. Start docker

  3. supabase start
  4. Visit `localhost:3000

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.


D1

npx wrangler d1 migrations apply <DATABASE_NAME> [OPTIONS] npx wrangler d1 migrations apply preview --local npx wrangler d1 migrations apply preview --remote npx wrangler d1 migrations apply production --remote --env=production

To preview current schema: SELECT name, sql FROM sqlite_master npx wrangler d1 execute preview --local --command="SELECT name, sql FROM sqlite_master"

Preview is used by everything except your local env and prod, so develop and all other branches.

to test: npx wrangler d1 execute production --local --command="SELECT * FROM users"

For local development add SSL certificate(you will get issue in the browser regarding insecure connection): sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" certificates/localhost.crt

To generate certificate on MacOS run

openssl req -x509 -out localhost.crt -keyout localhost.key \
 -newkey rsa:2048 -nodes -sha256 \
 -subj '/CN=localhost' -extensions EXT -config <( \
 printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

and move output files to certificates folder. You might need to close the browser application and reopen to refresh ssl certificates.

##Migrations to start: npx wrangler d1 migrations create preview <migration brief description>

to apply: npx wrangler d1 migrations apply preview --local npx wrangler d1 migrations apply preview --remote npx wrangler d1 migrations apply production --remote --env=production

##CF R2 wrangler r2 bucket create your-bucket-name url to test upload: curl --request PUT "<URL>" --header "Content-Type: text/plain" --header "Content-Length: 10" --data "nagvsudXgvakgabdgdkfaxsuieg"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors