project_description
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Here's a blank template to get started: To avoid retyping too much info. Do a search and replace with your text editor for the following: github_username
, repo_name
, twitter_handle
, linkedin_username
, email_client
, email
, project_title
, project_description
This repo is a rich clone of Creating a REST Web API in C# with ASP.NET Core 5.0 and Visual Studio Code. Is an step-by-step guide to show you how to create a REST Web API in C# with ASP.NET Core 5.0 and Visual Studio Code. And how test it using either Swagger or a REST Client extension..
First you need to check if you have installed the .NET Core 6.0 SDK with the following .NET CLI (Command-Line Interface) command:
dotnet --version
If your version is not 5 or above, download the .NET Core 6.0 SDK and install it on your machine.
Install Visual Studio Code editor (also know as VSCode).
Once Visual Studio Code is open, install the REST Client extension.
Finally, install the C# extension to get IntelliSense features in VSCode.
git clone https://github.com/potlitel/DjangoTailwindcssTemplate.git
npm install
dotnet watch run
Docker helps developers build and ship higher-quality applications, faster." -- What is Docker
The 3.10.x kernel is the minimum requirement for Docker.
10.8 “Mountain Lion” or newer is required.
Hyper-V must be enabled in BIOS
VT-D must also be enabled if available (Intel Processors).
Windows Server 2016 is the minimum version required to install docker and docker-compose. Limitations exist on this version, such as multiple virtual networks and Linux containers. Windows Server 2019 and later are recommended.
Run this quick and easy install script provided by Docker:
curl -sSL https://get.docker.com/ | sh
If you're not willing to run a random shell script, please see the installation instructions for your distribution.
If you are a complete Docker newbie, you should follow the series of tutorials now.
Download and install Docker Community Edition. if you have Homebrew-Cask, just type brew install --cask docker
. Or Download and install Docker Toolbox. Docker For Mac is nice, but it's not quite as finished as the VirtualBox install. See the comparison.
NOTE Docker Toolbox is legacy. You should to use Docker Community Edition, See Docker Toolbox. Once you've installed Docker Community Edition, click the docker icon in Launchpad. Then start up a container:
docker run hello-world
That's it, you have a running Docker container.
If you are a complete Docker newbie, you should probably follow the series of tutorials now.
Instructions to install Docker Desktop for Windows can be found here
Once installed, open powershell as administrator and run:
# Display the version of docker installed:
docker version
# Pull, create, and run 'hello-world':
docker run hello-world
To continue with this cheat sheet, right click the Docker icon in the system tray, and go to settings. In order to mount volumes, the C:/ drive will need to be enabled in the settings to that information can be passed into the containers (later described in this article).
To switch between Windows containers and Linux containers, right click the icon in the system tray and click the button to switch container operating system Doing this will stop the current containers that are running, and make them unaccessible until the container OS is switched back.
Additionally, if you have WSL or WSL2 installed on your desktop, you might want to install the Linux Kernel for Windows. Instructions can be found here. This requires the Windows Subsystem for Linux feature. This will allow for containers to be accessed by WSL operating systems, as well as the efficiency gain from running WSL operating systems in docker. It is also preferred to use Windows terminal for this.
Follow Microsoft's instructions that can be found here
If using the latest edge version of 2019, be prepared to only work in powershell, as it is only a servercore image (no desktop interface). When starting this machine, it will login and go straight to a powershell window. It is reccomended to install text editors and other tools using Chocolatey.
After installing, these commands will work:
# Display the version of docker installed:
docker version
# Pull, create, and run 'hello-world':
docker run hello-world
Windows Server 2016 is not able to run Linux images.
Windows Server Build 2004 is capable of running both linux and windows containers simultaneously through Hyper-V isolation. When running containers, use the --isolation=hyperv
command, which will isolate the container using a seperate kernel instance.
We can now build this image in a simple way running the followind command
docker build -t tailwindsccs:latest .
Note that tailwindsccs is the name of the image, and using :latest can be anything like an example docker build -t tailwindsccs:latest .
This will create an image called tailwindsccs and be version latest
Now go get some ☕️ and 💺 while 🐳 does its magic 🐳 = ❤️
Once this is completed as it can take a bit of time (Normally a few minutes ☕️) then we can run our project using the following command.
docker run -d -p 8000:8000 tailwindsccs:latest
This tells Docker to run the image tailwindsccs:latest or whatever you called your project 🤔 on port 8000, -d means detached and is a fancy word of saying "Runs in the background"
Cool tip if you want to use this image on a different port while developing you can change first part of the run port to something else like so
docker run -d -p 9900:8000 tailwindsccs:latest
And it will now run on port 9900 👍 😏
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE.txt
for more information.
Your Name - @twitter_handle - potlitel@gmail.com
Project Link: https://github.com/potlitel/DjangoTailwindcssTemplate
List of resources I find helpful and would like to give credit to. I've included a few of my favorites to kick things off!