Skip to content

Create your snippet code in your favorite programming language and make your firts Pull Request, and happy Hacktoberfest

Notifications You must be signed in to change notification settings

cTahirih/codeTidbits

Repository files navigation

CodeTidbits

Hacktoberfest;

Last year was the first time I participated in Hacktoberfest, I made more than five contributions and I was very happy. This year I not only want to contribute, so I created this repository with something basic to grow and be a super project.

Use this project to make your first contribution to an open source project on GitHub. Practice making your first pull request to a public repository before doing the real thing!

Celebrate Hacktoberfest by getting involved in the open source community by completing some simple tasks in this project.

This repository is open to all members of the GitHub community. Any member may contribute to this project without being a collaborator.

What is Hacktoberfest?

A month-long celebration from October sponsored by Digital Ocean and GitHub to get people involved in Open Source. Create your very first pull request to any public repository on GitHub and contribute to the open source developer community.

https://hacktoberfest.digitalocean.com/

How to contribute to this project

Here are 3 quick and painless ways to contribute to this project, You do not need to be an expert in Angular 😊 :

  • Add your name to the CONTRIBUTORS.md file
  • Add a snippet code or a simple "Hello, world" using Carbon
  • Or add improve to the page.

Choose one or all 3, make a pull request for your work and wait for it to be merged!

Getting started

  • Fork this repository branch master (Click the Fork button in the top right of this page, click your Profile Image)
  • Clone your fork down to your local machine
git clone https://github.com/[YOUR_USER_NAME]/code-tidbits.git
  • Make your changes (choose from any task below)
  • Commit and push
git add .
git commit -m 'Commit message'
git push origin master
  • Create a new pull request in branch master from your forked repository (Click the New Pull Request button located at the top of your repo)
  • Wait for your PR review and merge approval!
  • Star this repository ⭐ if you had fun!

Choose from these tasks

1. Add your name

Add your name to the CONTRIBUTORS.md file using the below convention:

#### Name: [YOUR NAME](GitHub link)

- Place: City, State, Country
- Bio: Who are you?
- GitHub: [GitHub account name](GitHub link)

2. Add a snippet code

  • Add a simple snippet code using Carbon, then you export your code in image type png.
  • Save your image in folder assets/images using the pattern language_code (language of your code snippet).
  • In a file src/app/home/components/data-codetidbits.ts add your image and data using the example as a guide, and that's all.

3. Add improve to the page

You can improve to the page, adding routing, a search bar, etc.

About the project

Workspace

After cloning the repository and starting the project, you will need to have Node, npm, Angular CLI installed. If you already have it ready, you just need to go to the folder and install the packages.

  • Run this command to install dependencies, in your console: npm install
  • Start project using this command: ng serve --open

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Running unit tests

Run ng test to execute the unit tests via Karma.