Giter Site home page Giter Site logo

michalvavra / fresh-sqlite-example Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 2.0 16 KB

Fresh SQLite example on Fly.io.

Home Page: https://fresh-sqlite-example.fly.dev

License: MIT No Attribution

Dockerfile 5.75% TypeScript 93.80% Shell 0.45%
deno fresh sqlite fly-io example

fresh-sqlite-example's Introduction

fresh-sqlite-example

Fresh example with SQLite and kysely query builder.

See running example on Fly.io.

Prerequisites

Optional

Development

Run

deno task start

# or

just run

This will watch the project directory and restart as necessary.

Initiate database

deno task migrate

Creates ./data/test.db with example data. It runs migrate_down and migrate_up tasks.

Create database and populate with data

deno task migrate_up

Clear database

deno task migrate_down

Deployment

Fly.io deployment configuration is based on Remix Indie Stack and Fly.io Run a Deno.

  • Create an app
flyctl launch
  • Create a persistent volume for the SQLite
flyctl volumes create data --size 1 --app fresh-sqlite-example
  • Deploy
flyctl deploy
  • Open in the web browser
flyctl open

fresh-sqlite-example's People

Contributors

michalvavra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.