Skip to content

ehye/blog-list-cicd

Repository files navigation

blog-list-cicd

Health Check Deployment Pipeline

React Chakra Vite Vitest Express.js Nodemon Mongoose MongoDB

What

Build a CI/CD-pipeline for Fullstack Open Part 11.20

How

  • To install dependencies:

    pnpm install
    
  • To run in debug:

    Use environment variables MONGODB_URI and TEST_MONGODB_URI to provide db connection strings

    MONGODB_URI=<db_connection_string>
    TEST_MONGODB_URI=<test_db_connection_string>
    

    Run in client in development mode:

    pnpm run client:dev
    

    Run in server in development mode:

    pnpm run server:dev
    
  • To run in production:

    pnpm run deploy

    Frontend will be build in ./client/dist