Coder Social home page Coder Social logo

omarelsahragty / skeleton Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 2.17 MB

Domain-driven design (DDD) structure and atomic design structure Skeleton.

License: MIT License

Shell 0.02% JavaScript 88.21% HTML 0.97% SCSS 10.04% CSS 0.76%
nodejs postgresql sequelize-orm redis expressjs socket-io twilio-sms ddd-architecture reactjs material-ui

skeleton's Introduction

Skeleton

Domain-driven design (DDD) structure and atomic design structure Skeleton.

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Docker

  1. Run docker compose ➡ docker-compose up --build -d
  2. Fill .postgres file configurations
  3. docker migrate database (Remove data if exist) ➡ docker exec -it skeleton_backend npm run docker:database:reset

Local (Backend)

  1. Install node dependencies ➡ npm install
  2. Create a new database on PostgreSQL
  3. Create .env file with your configurations using ./docs/.env.example
  4. Database migration ➡ npm run database:init
  5. Development run ➡ npm run dev || Production run ➡ npm run start

NPM scripts (Backend)

  1. npm run start ➡ Production runtime environment.
  2. npm run dev ➡ Development runtime environment. (Listening on src for changes) {nodemon must be installed globally}
  3. npm run docker ➡ Docker runtime environment.
  4. npm run docker:database:reset ➡ Docker runtime environment database migration. (Remove the existing data)
  5. npm run lint ➡ Run linter. (Checking for mistakes)
  6. npm run database:init ➡ Initialize database. (Create tables and seed database)
  7. npm run database:reset ➡ Initialize/Reset database. (Remove the existing data) {DO NOT USE}
  8. npm run database:delete ➡ Delete all the existing data. {DO NOT USE}
  9. npm run test ➡ Run test cases.

Technologies

  1. Node.js (Runtime Environment)
  2. PostgreSQL (Relational Database)
  3. Redis (Cache)
  4. ReactJS (Frontend)

Documentation

  1. Postman (collection and environment) are provided in ./docs/Postman folder.
  2. Swagger (yaml file) is provided in ./docs/Swagger folder.

For more projects check my github account https://github.com/OmarElsahragty or check my portfolio website https://sahragty.herokuapp.com/

skeleton's People

Contributors

dependabot[bot] avatar omarelsahragty avatar

Stargazers

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