Giter VIP home page Giter VIP logo

tsdb's Introduction

TheSimpsonsDatabase

Simple app to keep track of your watched episodes of The Simpsons.

Deployment

TSDB Can be run using Docker or standalone using Node.js

0. Prerequisites

  • Node.js
  • pnpm
  • PostgreSQL

Environment variables can be set using a .env.production.local file in the root directory, or by setting them in the environment (obviously)

# The port to listen on
PORT=3000

# The URL to the PostgreSQL database
DATABASE_URL=postgres://user:password@host:port/database

1. Clone the repository

git clone https://github.com/MaximMaximS/TSDB.git
cd TSDB

2. Install dependencies

pnpm run deps

3. Prepare the database

pnpm run deploy

4a. Docker

# Build
docker build -t maximmaxims/tsdb .

# Start
docker run --env-file .env.production.local -p 3000:3000 maximmaxims/tsdb

4b. Standalone

This requires Node.js and pnpm to be installed. Note that the env file must be moved to the dist directory.

# Build
pnpm run builder

# Start
cd dist
node server.js

tsdb's People

Contributors

maximmaxims avatar

Watchers

 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.