C# Badge Maker is a Command Line Application that allows users to generate Id badge pngs that include a workers name, id, and photo. It was built to learn C#.
While building this project I learned to:
- Write C# variables by defining what they are, for example instead of
var bl = true
you would writebool bl = true
- Install C# packages using
dotnet
- Manipulate the file system to generate files and folders
- Import packages with the
using
tag. Primarily from theSystem
but also from dotnet packages - Run a C# file by using
dotnet run
ordotnet watch
- Fork the repo
- Clone the code to your local machine
- Open in
VS Code
- Use the
restore
command
From the terminal run dotnet run
to begin the application.
- You will be asked if you would like to auto generate ids. If true 10 ids will be generated and placed within the
data
folder. If false continue reading. - You will be asked to enter a first name, last name, id, and photo url. For the photo url feel free to use
https://placekitten.com/300/300
. - Once you have finished entering one id you may either continue entering ids or simply hit enter with no input to finish. Ids will be generated and placed within the
data
folder.
The gif below shows the functional app:
The image below is an example output id:
If you have a suggestion that would make the repo 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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
If all of this is new to you take a look at the GitHub Docs.
Distributed under the MIT License. See LICENSE for more information.