Code Monkey home page Code Monkey logo

sample-compose's Introduction

Apps Gallery Frontend+Backend

Demo screenshots

Installing / Getting started

In order to setup the project you will need the following technologies installed:

  • Docker
  • docker-compose
  • docker
  • git
  • make
cp .env.example .env
git submodule update --init --recursive
make run

Building the services might take a while as it needs to pull the dependencies before it can run.

Note: the make run command might fail if the some services are not yet up so you might need to manually trigger the final steps of make run on below commands

make migrate
make seed

migrate - will be responsible for generating the tables seed - will be responsible for populating the table with data, but here we didn't add any seeder

Where to find them?

Api service will be built on - http://localhost:3002

Client service will be build on http://localhost:3000, this would probably take the longest to get up and running.

This configuration can be changed in the .env file.

.env variables (these can be changed to your preference)

Variable default value description
REACT_APP_API_URL http://localhost:3002/api/v1 endpoint used by the client-service to connect to the api-service
CLIENT_PORT 3000 port used by client-service
API_PORT 3002 port used by api-service
POSTGRES_DOCKER_IMAGE postgres:12 default postgres docker image version
POSTGRES_PASSWORD password postgres password
POSTGRES_DB development postgres db variable which will be used as default db when initializing the container image
POSTGRES_PORT 5432 default postgres port

sample-compose's People

Stargazers

Roman avatar

Watchers

James Cloos avatar Jojo Narte 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.