GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - benakdev/fragments: This GitHub repository serves as the foundation of the cloud computing microservice project. It includes initial setup of development environment, GitHub repositories, API server using Node.js and Express, structured logging, HTTP testing tools, npm scripts, and VSCode debugging configurations.

BranchesTags
Open more actions menu

Latest commit

 

History

101 Commits
101 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
.dockerignore
.dockerignore
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
.prettierrc
.prettierrc
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
docker-compose.local.yml
docker-compose.local.yml
 
 
docker-compose.yml
docker-compose.yml
 
 
env.jest
env.jest
 
 
fragments-definition.json
fragments-definition.json
 
 
jest.config.js
jest.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

Fragments

This GitHub repository serves as the foundation of the cloud computing microservice project. It includes the initial setup of the development environment, GitHub repositories, an API server using Node.js and Express, structured logging, HTTP testing tools, npm scripts, and VSCode debugging configurations. The front end for this project can be found at here.

Table of Contents

  • Prerequisites/Dependencies
  • Installation
  • Development Tools
  • Server Setup
  • Testing
  • Continuous Delivery
  • Additional Information
  • Acknowledgments

Prerequisites/Dependencies

Notice, this was made using Windows 11 and PowerShell, code snippets might be different on Linux/Mac.

Before you begin, ensure you have the following installed:

  • Node.js
  • npm
  • VSCode with the following extensions:
    • ESLint
    • Prettier - Code Formatter

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/benakram4/fragments.git
    cd fragments
  2. Initialize the project and install dependencies:

    npm init -y
    npm install

Development Tools

ESLint

To lint your code and ensure code quality, run:

npm run lint

Prettier

Prettier is used for code formatting. It's automatically applied when you save files in VSCode.

Structured Logging with Pino

We use Pino for structured logging. Logging configuration can be found in the src/logger.js file.

Server Setup

Start the Server

To start the server in production mode, use:

npm start

The server will run at http://localhost:8080.

Development Mode

To run the server in development mode with automatic code reloading (using Nodemon), use:

npm run dev

Debug Mode

To run the server in debug mode with the ability to attach a debugger, use:

npm run debug

For detailed instructions on how to use the VSCode debugger, including setting breakpoints, and inspecting variables, see:

  • https://code.visualstudio.com/docs/editor/debugging
  • https://code.visualstudio.com/docs/nodejs/nodejs-debugging

Testing

Unit Tests

To run unit tests, use:

npm run test:unit

Integration Tests

To run integration tests, use:

npm run test:integration

Continuous Delivery

This project uses a Continuous Delivery (CD) workflow to deploy updates.

Docker

The project uses Docker for containerization. The Dockerfile is linted using Hadolint, and images are built and pushed to Docker Hub.

AWS

The project is integrated with AWS for deploying Docker images to Amazon Elastic Container Service (ECS). AWS credentials are configured using GitHub secrets.

Workflow

The .github/workflows/cd.yml file defines the CD workflow which triggers on pushing a new tag or commits to the main branch. The workflow includes steps to:

  • Check out the code
  • Set up Docker Buildx
  • Configure AWS credentials
  • Build and push Docker images to Amazon ECR
  • Update ECS task definitions and deploy the new image

Additional Information

Troubleshooting jq Installation on Windows 11

I faced some issues with installing jq on Windows 11. The jq documentation provides two installation methods:

  • Using Winget

    You can install jq using the Winget package manager with this command:

    winget install jqlang.jq
  • Downloading the Executable

    You can download the jq executable directly, but this method requires manual addition of jq's PATH to the Windows environment variables.

Acknowledgments

  • Cloud-computing-for-programmers-fall-2023 Lab01
  • ChatGPT
  • README Template

About

This GitHub repository serves as the foundation of the cloud computing microservice project. It includes initial setup of development environment, GitHub repositories, API server using Node.js and Express, structured logging, HTTP testing tools, npm scripts, and VSCode debugging configurations.

github.com/benakram4/fragments-ui-nextjs

Resources

Readme
Activity

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.