Coder Social home page Coder Social logo

aws-test's Introduction

Template for docker, deploy and E2E tests

Tech stack:

  • fontend: Nginx, React (CRA boilerplate, E2E jest tests with puppeteer)

  • backend: Node.js (Express), GraphQL

  • database: MySql, PhpMyAdmin (only locally)

Secure your project

You should definitely exclude from repository files below

Remember to uncomment (prepared section lines) this files in .gitignore

  1. ./env
  2. ./frontend/dev.env
  3. ./frontend/prod.env
  4. ./frontend/nginx/auth/.htpasswd

Files to modification

  • Github CI/CD scripts ./.github/workflows/dev.deploy-and-tests.yml (especially deploy directories)
  • All .env files from secure section and .htpasswd you can generate new password in htpasswd genertor
  • Database in docker build- here should be different approach (it is included here only for demonstration purposes)

Instructions

After cloning repository depends of environment that you want to run service you do it through:

  • Prod version
docker-compose -f docker-compose.prod.yml up -d
  • Dev version
docker-compose -f docker-compose.dev.yml up -d
  • local version
  1. Way (for testing whole service structures)
docker-compose -f docker-compose.local.yml up -d
  1. Way (recommended for developing)
docker-compose up -d

More info about how to run particular service you can find in ./frontend/README.md and ./backend/README.md

Store your backend files in directory ./backend/uploads/data/ on your server

aws-test's People

Contributors

russo-creation avatar

Watchers

James Cloos 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.