Snippet Box – An application that stores important code snippets
- Tram Ho
Hello everyone, continuing to share articles about applications in Docker. Today is the next TIP I share with everyone another application. There are many ways to archive your favorite pieces of code, not to mention endless ways. Today I share with everyone how to create a super simple and lightweight application that is useful with Docker. Dzoo always…
1. What is a Snippet Box?
Snippet Box is a simple storage application that organizes your code snippets. It allows you to easily create, edit, delete and manage your code snippets in various languages. With built-in Markdown support, the Snippet Box makes it easy to add simple notes or documentation to your code. Read more information here
2 Settings
Installing Snippet Box is quite simple, you use Docker or docker-compose to install. If you have not installed docker, refer to my previous post.
Run directly with Docker
1 2 | sudo docker run -d --name snippetbox -p 5100:5000 -v /srv/config/snippetbox:/app/data pawelmalak/snippet-box |
Run with docker-compose
1 2 3 4 5 6 7 8 9 10 11 | version: '3' services: snippet-box: image: pawelmalak/snippet-box:latest container_name: snippet-box volumes: - /path/to/host/data:/app/data ports: - 5000:5000 restart: unless-stopped |
3 Functions
- Search- Search your code with built-in tags.
- Pin – Pin your favorite, important code snippets to your home screen for quick and easy access.
- Snippet library – Manage your code through a built-in library easily filtered and accessed via tags.
- Snippet – This tab allows you to add and remove the code you want
Hope the article helps you create a place for yourself to save your code or anything you want through the Snippet Box application with Docker simply. Good luck.!