Code Monkey home page Code Monkey logo

clash-of-clans-backend's Introduction

mark-fullstack-proj--starter-1

Usage:

Instead of cloning this project, click "Use this template". This will allow you to create a repo on github which has this project's content but which is not a fork of it.

Make sure you create the repo as being owned by your own account not by the WeAreAcademy organisation.

Install

yarn

DB Setup

Copy .env.example to .env and set DATABASE_URL, LOCAL_DATABASE_URL and PORT to your liking.

e.g.

DATABASE_URL=postgres://someuser:somebigsecretpassword@somedbhost/pastebin
LOCAL_DATABASE_URL=postgres://neill@localhost/pastebin
PORT=4000

You will need to create your own databases for this project - certainly one remotely and ideally one locally, too, for development and testing.

Hosts for postgres with a free offering include:

Running locally

yarn start:dev

The env var LOCAL_DATABASE_URL will be consulted.

Running locally against a remote db

yarn start:dev-with-remote-db

The env var DATABASE_URL will be consulted.

Deploying to render.com

To deploy to render.com:

  • build command should be yarn && yarn build

Running on render.com

After deployment, render.com should be set up to run either yarn start or node dist/server.js

The env var DATABASE_URL will be consulted and so must be set on render.com prior to application start.

clash-of-clans-backend's People

Contributors

hokeil 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.