Object-oriented Programming Challenge: Logo Maker
Build a Node.js command-line application that takes in user input to generate a logo and save it as an SVG file.The application prompts the user to select a color and shape, provide text for the logo, and save the generated SVG to a .svg file.
Make sure that you remove dist from the .gitignore file so that Git will track this folder and include it when you push up to your application's repository.
The application must include Triangle, Circle, and Square classes, as well as tests for each of these classes using Jest.
While not a requirement, it is recommended that you place any common functionality and properties shared by the Triangle, Circle, and Square classes in a parent Shape class and use inheritance to reuse the code in the child classes.
Each shape class should be tested for a render() method that returns a string for the corresponding SVG file with the given shape color.
As a freelance web developer, I want to generate a simple logo for my projects so that I dont have to pay a graphic designer.
The following image shows a mock-up of the generated SVG given the following input entered by the user: EYE for the text, red for the text color, triangle from the list of shapes, and black for the shape color. Note that this is just an image of the output SVG and not the SVG file itself:
This application is covered by the MIT license.
Your application should use Jest for running the unit tests and Inquirer for collecting input from the user. The application will be invoked by using the command: node index.js.
Jonathan Fadera, Week_10-oop, [Emmanuel Jucaban - instructor]
If there are any questions, feel free to contact my email at: ericsonhnc@gmail.com
You can also find me on GitHub at: JonathanFadera
This application was deployed at https://github.com/JonathanFadera/oop_logomaker