GithubHelp home page GithubHelp logo

punchline-backend's Introduction

Get Started

Before running the application there are a number of steps required to get the environment setup. It is assumed you will already have installed the .NET 6 development SDK, and ensure you the dotnet cli too installed (if dotnet -h responds anything other than "command not found" you're good to go). Additionally docker and docker-compose are required to run this project.

Pre-Requisites

You will need to download the app service.json and included it with the project in order to run the project (Firebase Admin SDK will expect this in the Startup.cs).

Installation

Running make up will run docker-compose to setup the environment (database) - this should always be running before starting the dotnet application. We are not using appsettings for storing sensitive secret, instead opt for user-secrets, accessible via the dotnet cli tool.

You will be required to setup environment variables for:

  • GOOGLE_APPLICATION_CREDENTIALS
    • โžœ dotnet user-secrets set "GOOGLE_APPLICATION_CREDENTIALS" "/Users/<USER>/path/to/repostiory/firebase-google-service.json"
  • ConnectionStrings:DefaultConnection
    • โžœ dotnet user-secrets set "ConnectionStrings:DefaultConnection" "User ID=;Password=;Host=;Port=5432;Database=postgres;Pooling=true;Minimum Pool Size=0;Maximum Pool Size=100;Connection Lifetime=0;"
    • (docker-compose will take the variables from the .env file in the root directory - update these as you see fit)

punchline-backend's People

Contributors

kieran-osgood avatar kieran-osgood-and-digital 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.