Giter Site home page Giter Site logo

jscoobyced / docker-nodejs-mariadb Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 955 KB

This is all you need to build a full website using ReactJS and NodeJS.

License: GNU General Public License v3.0

Dockerfile 1.71% TypeScript 85.90% HTML 1.21% CSS 5.08% JavaScript 0.76% Shell 5.33%

docker-nodejs-mariadb's Introduction

Welcome to my Github home.

Feel free to look around, submit issues or fork any repository.

docker-nodejs-mariadb's People

Contributors

dependabot[bot] avatar jscoobyced avatar

Watchers

 avatar  avatar

docker-nodejs-mariadb's Issues

Enable SQL scripts to manipulate DB on start-up

We need to be able to perform basic DB manipulation. For example:

  • configuration/db/setup/current.sql: to drop all tables, indexes, constraints... and re-create them. This should always be updated when there is a DB change
  • configuration/db/setup/previous.sql: this must be the content of the current.sql script before making any change to it. It will be used to test the update.sql script.
  • configuration/db/setup/stored/xxx.sql: each stored procedure should have it's own file and version in the name (i.e. get_user_by_username_v1.sql. The file name should be the same as the SP name, with the version appended to it (separated with a _ underscore). No change should ever be made to a SP. Instead a new version is added. This allows for easy rollback. The name is important to automatically drop older SP versions automatically and maintain a clean DB schema.
  • configuration/db/setup/qa.sql: to populate data for QA environment and testing
  • configuration/db/update/update.sql: this script will be run to update the database schema. In the CI environment, the previous.sql script is used to create a DB, then run the update.sql script to update it. Then it uses the current.sql to create another db. Ideally it should compare the entities in both to ensure they are equal.

That's a big story :)

Make build pass

For now the build can't pass if there is no valid docker credentials in the GH Actions Secret. The build should check for the values first then skip those steps.

Create deployment CI

We need to be able to push to master and get automatically deployed to production, using standard tools rather than custom scripts.
Database should have zero downtime for deployment.
Front-End and Back-End can have downtime, but the process should support for more FE or BE instances to achieve zero downtime too.

Enable CI build

Create GH actions to:

  • run all tests and push code coverage to codecov
  • create a release on success

Configure docker hub to build production images of front-end and back-end applications based on:

  • merge to main branch
  • release version

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.