Miccore.Net 1.0.9

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Miccore.Net --version 1.0.9                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Miccore.Net --version 1.0.9                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Miccore.Net&version=1.0.9                
nuke :add-package Miccore.Net --version 1.0.9                

Miccore .Net

Tool for dotnet core webapi microservice creation and management or for xamarin project creation.

Build Status

Miccore .Net is a CLI which allows a user to create a webapi project with a very specific microservice architecture. it also allows you to create a xamarin project.

Features

  • Create new webapi microservice project architecture
  • Create new xamarin mobile project
  • Add new microservice in the project architecture
  • add service in one microservice
  • delete service in microservice
  • delete microservice
  • build the project and run it

Tech

Miccore .Net uses a number of open source projects to work properly:

  • Dotnet Core - NET Core Runtime enables you to run existing web/server applications. ...
  • Ocelot - Ocelot is a .NET API Gateway
  • Xamarin - Open-source mobile app platform for .NET
  • Mysql - MySQL Database Service est un service de base de données entièrement géré pour déployer des applications natives du cloud en utilisant la base de données​ ...
  • Microservice Architecture

And of course Miccore .Net itself is open source with a public repository on GitHub.

Installation

Miccore .Net requires Dotnet core v3.1 or later to run.

Install the dependencies and devDependencies and start the server.

dotnet tool install --global Miccore.Net

create a new project architecture

You have the possibility to create the new project with or without authentication microservice regarding webapi, but the xamarin project comes with a simple architecture

First Tab (webapi with auth):

miccore new --project webapi --name project_name --with-auth

or

miccore new -p webapi -n project_name -wa

Second Tab (webapi without auth):

miccore new --project webapi --name project_name

or

miccore new -p webapi -n project_name

Second Tab (xamarin project):

miccore new --project xamarin --name project_name

or

miccore new -p xamarin -n project_name

concerning webapi we can

Miccore .Net easily allows

add new microservice to architecture

also here, you have possibility to add microservice with or without authentication. the only thing you have to do is to add --with-auth or -wa at the next command if you want it with authentication

miccore add project --name project_name

This will create a web api project in ower microservice architecture and will import it in the ocelot gateway

delete microservice to architecture

miccore delete project --name project_name

This will create a web api project in ower microservice architecture and will import it in the ocelot gateway

add new service to a project

miccore add service --name service_name --project project_name

note that the project name is without .microservice after it. This will create a service in the project specified and will do all dependency injection and will set database context.

Build webapi architecture project

miccore build
  • add after the command --open if you want to serve immediatly after the build.

once the project is built, dist/ folder is created. to launch the project you just have to launch the file start.sh included in it

also note that for this to happen you need to install the pm2 tool from the node name.

npm install -g pm2

Startup project file

once the microservice project is created, you have to go to the startup.cs file and update the database connection elements.

License

MIT

Free Software, Hell Yeah!

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
3.0.1 5,107 1/27/2022
3.0.0 2,237 1/10/2022
2.0.5 3,301 3/23/2022
2.0.4 2,531 1/26/2022
2.0.3 2,456 9/30/2021
2.0.2 2,139 9/29/2021 2.0.2 is deprecated because it has critical bugs.
2.0.1 1,932 8/12/2021
2.0.0 2,036 8/12/2021 2.0.0 is deprecated because it has critical bugs.
1.0.9 1,791 6/29/2021
1.0.8 1,984 6/24/2021
1.0.7 2,067 6/22/2021
1.0.6 2,247 6/17/2021
1.0.5 2,385 6/17/2021
1.0.3 2,103 6/15/2021