Code Monkey home page Code Monkey logo

template-nest-pg-typeorm's Introduction

Express + Nest + TypeORM + Postgres REST API Starter Pack

Backend engineering, supercharged.

Overview

Use this repository to get up and running on FL0 with the following stack:

Language Javascript
Framework Nest
Router Express
ORM TypeORM
Database Postgres

Getting Started

We recommend using the provided Docker Compose configuration for local development. Our Docker configuration includes:

  1. Automatically create both database and app server easily
  2. Hot-reloading of code for local development
  3. Production-ready minified image
  4. Database admin interface using Cloudbeaver

However, you can still use this repo without Docker! See the instructions below.

Using Docker

  1. docker compose up (initial build can take a couple of mins)
  2. That's it! Visit http://localhost:8080 to see your app running

Without Docker

If you don't want to use Docker, make sure you have a Postgres database that you can connect to.

  1. npm install
  2. Copy the provided .env.example file and rename it to .env
  3. npm run start:dev
  4. Visit http://localhost:8080 to see your app running

Deploying to FL0

Checkout our Getting Started Guide in the FL0 documentation!

Using the Database Admin Interface

If you use our Docker Compose file you have access to a local instance of Cloudbeaver. To access it, navigate to:

  1. Navigate to http://localhost:8081
  2. Follow the setup wizard to create your admin account
  3. Add a new connection using the PostgreSQL driver and the URL below

jdbc:postgresql://db:5432/fl0-starter-db?user=admin&password=admin

Questions

If you have any questions about FL0 or this template codebase please head on over to our Discord channel.

Issues

Any issues or feature requests can be raised on the Issues page of this repo.

License

This template repository is MIT licensed.

template-nest-pg-typeorm's People

Contributors

james-fl0 avatar rthomas avatar

Stargazers

Danil Savchenko avatar Pol Gubau Amores avatar

Watchers

 avatar Elias Amha 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.