Skip to content

tinoduong/code-snippet

Repository files navigation

Code Snippets

This project allows you to store text samples in a manner that is easy to manage and access. Choose from an selection of several languages for automatic syntax highlighting.

All you data will be stored via local storage

This project is meant to be deployed in a chrome extension.

Alt text

Development server

For development purposes run the application using the build in websever.

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.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run npm run test to execute the unit tests via Jest

Deployment

You can deploy this as a chrome extension. Navigate to chrome://extensions select "load unpacked". Point the folder to the dist folder after running ng build. You'll then see an icon in chrome.

About

Collect code samples and store for easy access

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published