Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.94 KB

README.md

File metadata and controls

74 lines (52 loc) · 1.94 KB


Markdownify
.NET Minimal API Template

A minimal Web API to make available a template for future projects.

How To UseLicense

Markdownify

How To Use

To clone and run this application, you'll need Git and .NET installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/thalissoncastrog/dotnet-api.git

# Go into the repository
$ cd dotnet-api

# Install dependencies
$ dotnet restore

# Run the app
$ dotnet run

Note After run each command above, go to a web browser and access this url: http://localhost:[port]/swagger.

- For a better experience, use Docker:

Note: Install docker according your operating system Docker Instalation.

# Clone this repository
$ git clone https://github.com/thalissoncastrog/dotnet-api.git

# Go into the repository
$ cd dotnet-api

# Do the next commands as root user
$ sudo su

# Create a docker image from Dockerfile
$ docker build -t api-minimal-dotnet:1.0.0 .

# Create a container from the image created before
$ docker run -d -p 8080:8080 api-minimal-dotnet:1.0.0

Note After run each command above, go to a web browser and access this url: http://localhost:8080/swagger.

License

MIT


Instagram @thalissoncastrog  ·  GitHub @thalissoncastrog  ·  Email [email protected]