Create and share beautiful images of your source code.
Generate snippets
·
Report Bug
·
Request Feature
Table of Contents
Create and share beautiful images of your source code. Start typing or paste a code snippet into the text area to get started.
To get a local copy up and running follow these steps.
You need NodeJs
and yarn
installed on your machine.
- yarn
npm install --global yarn
Firebase is used in this project for authentications and to store snippets. In order to contribute in the part requiring Firebase, create a file called .env
inside the root folder and add the following credentials in it once you create a Firebase app.
NEXT_PUBLIC_FIREBASE_API_KEY=<your_FIREBASE_APP_API_KEY>
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=<your_FIREBASE_APP_AUTH_DOMAIN>
NEXT_PUBLIC_FIREBASE_PROJECT_ID=<your_FIREBASE_APP_PROJECT_ID>
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=<your_FIREBASE_APP_STORAGE_BUCKET>
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=<your_FIREBASE_APP_MESSAGING_SENDER_ID>
NEXT_PUBLIC_FIREBASE_APP_ID=<your_FIREBASE_APP_APP_ID>
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=<your_FIREBASE_APP_MEASUREMENT_ID>
NEXT_PUBLIC_PEXELS_API_KEY=<your_NEXT_PUBLIC_PEXELS_API_KEY>
# don't change the following env var
NEXT_PUBLIC_PEXELS_QUERY_URL=https://api.pexels.com/v1
It does not matter what credentials you add to your .env
file, as the app won't crash while developing since the error is taken care of for the Firebase services that are unavailable.
- Clone the repo
git clone https://github.com/wajeshubham/snippng.git
- Install NPM packages
yarn
- Run the development server
yarn dev
- Run the test to test your changes
yarn test
OR
- Run using
docker
. make sur you have Docker installed on your machine.docker-compose up --build
- Add theme presets to choose from
- Option to create/save single default editor config for user
- Publish your themes
- Inject images in the background from url and pexels
- Import and export snippng config to quickly build the editor (download the JSON file with editor config)
- Custom theme configuration
- Build more themes to choose from
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Do some magic 🪄 inside the code. Write/Run tests before committing
- Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.md
for more information.
Shubham Waje - @linkedin/shubham-waje
Project Link: https://snippng.wajeshubham.in