Install the dependenies, then create the DB through migrate command.
npm i
npx prisma migrate dev --name initOn changes in the schema, need to run:
| import React from "react" | |
| import { useState, useEffect } from "react" | |
| function App() { | |
| return ( | |
| <Main> | |
| <Button></Button> | |
| <div style={{ background: "grey" }}> | |
| <Headline></Headline> | |
| </div> |
| // install node-sqlite3 with upgraded libs | |
| // npm install sqlite3 --build-from-source --sqlite=/usr/include | |
| import sqlite3 from 'sqlite3' | |
| var testdb = new sqlite3.Database(':memory:') | |
| testdb.run('create table test1 (name TEXT)') | |
| testdb.all('select * from test1', (err, row) => console.log(row)) | |
| testdb.run(`insert into test1 (name) values ('name1')`, function (err) { | |
| console.log({ changes: this.changes, lastID: this.lastID }) | |
| }) |
| import numpy as np | |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| plt.ion() | |
| fig, axs = plt.subplots(1, 1) | |
| import cartopy.crs as ccrs | |
| import cartopy.feature as cfeature | |