Skip to content

TwixmixyJanet/SVG-Logo-Maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Janet's SVG Logo Maker

image of Janet's SVG Logo Maker

Technology Used Resource URL
NodeJS https://nodejs.org/en
Inquirer https://www.npmjs.com/package/inquirer
FS https://nodejs.org/api/fs.html
Jest https://jestjs.io/
Screencastify https://www.screencastify.com/
JavaScript https://developer.mozilla.org/en-US/docs/Web/JavaScript
Git https://git-scm.com/
GitHub https://github.com/
VSCode https://code.visualstudio.com/

Table of Contents

Description:

This application acts as a wizard to create an SVG logo.

How to use this app:

  • Recommended Requirements:
    • Node.JS
    • CLI
    • VSCode
  • Installation:
    • Clone the repo to your device
    • Initiate NPM
    • Install inquirer
    • Install chalk
  • Open Integrated Terminal (CLI)
  • type "node index.js"
  • Follow the question prompts until complete
  • Retrieve file from 'examples' folder

User Story

  • AS a freelance web developer
  • I WANT to generate a simple logo for my projects
  • SO THAT I don't have to pay a graphic designer

Acceptance Criteria

  • GIVEN a command-line application that accepts user input
  • WHEN I am prompted for text
  • THEN I can enter up to three characters
  • WHEN I am prompted for the text color
  • THEN I can enter a color keyword (OR a hexadecimal number)
  • WHEN I am prompted for a shape
  • THEN I am presented with a list of shapes to choose from: circle, triangle, and square
  • WHEN I am prompted for the shape's color
  • THEN I can enter a color keyword (OR a hexadecimal number)
  • WHEN I have entered input for all the prompts
  • THEN an SVG file is created named logo.svg
  • AND the output text "Generated logo.svg" is printed in the command line
  • WHEN I open the logo.svg file in a browser
  • THEN I am shown a 300x200 pixel image that matches the criteria I entered

Lessons Learned

1. SVG

For this project I learned about scalable vector graphics and how to generate them through class objects. Through the SVG element each basic shape needed to have a element of either circle, rect or polygon. From there it was about defining their characteristics to set the size, dimensions, and color (via fill). Through SVG there's also the ability to set the text to display as well, with it's own parameters. Template literals were used to pass through the colors and the text.
lesson 1

2. Jest

Jest is an NPM for testing. I used this to test my shape modules. It takes some time to figure out the syntax, while allowing the ability to test modules individually to check their ability.
lesson 2 lesson 2

3. Class / Inheritance

Through our OOP classes we learned about Classes. These were essential to building this project. For the shapes I started with a parent shape that I could then pass the properties down to each type of shape.
lesson 3 lesson 3

4. Chalk (bonus!)

This one was just for fun because I wanted to spice up the text in my terminal. Chalk provides some predefined colors, highlights, bold, italics and other alteration capabilities.
lesson 4

Synopsis

Overall this was a fun project. It was difficult to turn around and immediately use the OOP lessons, but definitely necessary to accomplish the needs of this project.

Installation

  1. Create a new repository on GitHub, to store this project.
  2. Clone the repository to your computer.
  3. Copy files to your own repository.
  4. Follow the steps for "How to" above
  5. Make changes to the code.
  6. Commit the changes to the local repo.
  7. Push the changes to the remote repo.

Usage

This is a SVG logo generator app. If you would like to use this app follow the installation steps and curate it to your needs. If you would like to use this app to create your SVG logo files, follow the steps under the description above and click the link at the top of this page.

License

MIT License Copyright (c) 2023 Twixmixy / Janet Webster


About The Author

Janet Webster

Full Stack MERN Software Engineer in training.

Janet with her dog Winona on the beach

About

UCB SVG Logo Maker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published