Templates

A repository for trying out new things!

View the Project on GitHub FJrodafo/Test

Test

GitHub Pages GitHub Stars

Apache Maven Containers npm NuGet RubyGems

Apache Maven Containers npm NuGet RubyGems

Index

  1. Introduction
  2. Project structure
  3. Clone the repository
  4. Apache Maven
  5. Containers
  6. npm
  7. NuGet
  8. RubyGems
  9. Resources

Introduction

A repository for trying out new things!

This project has been developed on a Linux system. To learn more about the system, visit the Dotfiles repository.

Project structure

/
├── docs/
|   ├── _config.yaml
|   ├── CODE_OF_CONDUCT.md
|   ├── README.md
|   └── SECURITY.md
├── Packages/
|   ├── Apache_Maven/
|   ├── Containers/
|   ├── npm/
|   ├── NuGet/
|   └── RubyGems/
├── CONTRIBUTING
└── LICENSE

Clone the repository

Open a terminal in the directory where you store your repositories and clone it with the following command:

# HTTPS
git clone https://github.com/FJrodafo/Test.git
# SSH
git clone git@github.com:FJrodafo/Test.git

Apache Maven

# Packages Commands
cd Apache_Maven/
mvn package
java -cp target/test-1.0.0.jar Test
# Deploy to GitHub Packages
mvn deploy

Containers

# Packages Commands
cd Containers/
docker build -t test .
docker run --rm test:latest
# Push to Docker Hub
docker tag test:latest fjrodafo/test:1.0.0
docker push fjrodafo/test:1.0.0
# Push to GitHub Packages
docker tag test:latest ghcr.io/fjrodafo/test:1.0.0
docker push ghcr.io/fjrodafo/test:1.0.0

npm

# Packages Commands
cd npm/
npm init -y
npm start
# Publish to npm
npm run publish:npm
# Publish to GitHub Packages
npm run publish:github

NuGet

# Packages Commands
cd NuGet/
dotnet new console -n test
cd test/
dotnet run
dotnet pack --configuration Release
# Push to NuGet
dotnet nuget push bin/Release/test.1.0.0.nupkg \
    --api-key API_KEY \
    --source https://api.nuget.org/v3/index.json
# Push to GitHub Packages
dotnet nuget push bin/Release/test.1.0.0.nupkg \
    --source "github"

RubyGems

# Packages Commands
cd RubyGems/
ruby lib/fjrodafo/test.rb
gem build fjrodafo-test.gemspec
# Push to RubyGems
gem push fjrodafo-test-1.0.0.gem
# Push to GitHub Packages
gem push --key github --host https://rubygems.pkg.github.com/FJrodafo fjrodafo-test-1.0.0.gem

Resources

GitHub Docs · GitHub Actions · GitHub Packages · GitHub Pages