Giter VIP home page Giter VIP logo

beauf-net-back's Introduction

Beauf.net - API

Quotes API powered by

Nest Logo

Deployment

This project uses Docker to deploy. There is a production ready Dockerfile on the project's root. You just have to build the Docker image to deploy/run the API. The API is set to use a PostgreSQL database only.

Configuration

We are using the environment to configure the API. You can find a .env.example at the project's root. The values defined are placeholders used for example purpose. For a production deployments, these values must be set in the production environment.

Documentation

The API documentation is accessible via an embedded Swagger. It can be accessed via [api_url]/swagger. Every routes are described there.

Accessing the API

The default port of the API is 5000, but this value can be changed in the env.

Development

Usage

For development purpose only, we are using Docker compose. Everything is embedded in the docker-compose (database, API, Adminer). To run the docker compose, use docker-compose up --build. We are using hot reload, so you don't have to restart the compose on each change. The default port for Adminer is 8080. The credentials for Adminer can be set in the env but the server will always be db.

To use the default values of the env, copy/paste the .env.example to a .env file, on the project's root.

Migrations

When you add a new entity to the project, you must use yarn migrate to generate a migration.

Architecture

This project is based on service pattern, following NestJS example.

beauf-net-back's People

Contributors

dependabot[bot] avatar ingvaar avatar probot-auto-merge[bot] avatar

Stargazers

 avatar  avatar  avatar

beauf-net-back's Issues

v2

  • Add error code instead of strings
  • Use Knex instead of TypeORM
  • End to end testing
  • Add more coverage
  • CI/CD
  • eslint
  • Lint testing on CI
  • Versioning
  • Better linting

May had websockets on quote posting to broadcast new quotes to admin panel

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.