Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aloisdg/stacktribution
A tiny webapp to generate proper attribution to a Stack Overflow's answer.
https://github.com/aloisdg/stacktribution
hacktoberfest hacktoberfest-accepted nextjs react stackoverflow stackoverflow-answer stackoverflow-api stackoverflow-questions tailwind tailwindcss typescript
Last synced: about 1 month ago
JSON representation
A tiny webapp to generate proper attribution to a Stack Overflow's answer.
- Host: GitHub
- URL: https://github.com/aloisdg/stacktribution
- Owner: aloisdg
- License: mit
- Created: 2021-09-15T21:15:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-05T17:04:25.000Z (almost 3 years ago)
- Last Synced: 2023-08-10T06:11:39.484Z (over 1 year ago)
- Topics: hacktoberfest, hacktoberfest-accepted, nextjs, react, stackoverflow, stackoverflow-answer, stackoverflow-api, stackoverflow-questions, tailwind, tailwindcss, typescript
- Language: JavaScript
- Homepage: https://stacktribution.vercel.app/
- Size: 1.12 MB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stacktribution
Proper attribution done fast.
I realise that most people don't respect attribution rules from Stack Overflow. Stacktribution is a small web app to help with that. Beside compliance, it fixes some trouble by saving answers next to the source code.
When you run into the same issue years later
Add the link to your code### Demo
![demo_stacktribution](https://user-images.githubusercontent.com/3449303/133624048-0093e2ef-7aa2-4d5e-b725-db96e00c509a.gif)
### StackExchange's rules
Attribution is [required](https://stackoverflow.blog/2009/06/25/attribution-required/).
> You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
There are not an official way to do it, but here are the rules:
> So let me clarify what Stack Overflow means by attribution. If you republish a content, they require that you:
> 1. Visually indicate that the content is from Stack Overflow or the Stack Exchange network in some way. It doesn’t have to be obnoxious; a discreet text blurb is fine.
> 2. Hyperlink directly to the original question on the source site (e.g., http://stackoverflow.com/questions/12345)
> 3. Show the author names for every question and answer
> 4. Hyperlink each author name directly back to their user profile page on the source site (e.g., http://stackoverflow.com/users/12345/username)From that, I created some compliant [templates](https://github.com/aloisdg/Stacktribution/blob/main/src/utils/DocUtils.ts) you can fill automaticaly then copy/paste above any snippet from Stack Overflow inserted in your code base.
### Requirements
- Node.js and npm
### Getting started
Run the following command on your local environment:
```
git clone --depth=1 https://github.com/ixartz/Next-js-Boilerplate.git my-project-name
cd my-project-name
npm install
```Then, you can run locally in development mode with live reload:
```
npm run dev
```Open http://localhost:3000 with your favorite browser to see your project.
```
.
├── README.md # README file
├── next.config.js # Next JS configuration
├── public # Public folder
│ └── assets
│ └── images # Image used by default template
├── src
│ ├── layout # Atomic layout components
│ ├── pages # Next JS pages
│ ├── styles # PostCSS style folder with Tailwind
│ ├── templates # Default template
│ └── utils # Utility folder
├── tailwind.config.js # Tailwind CSS configuration
└── tsconfig.json # TypeScript configuration
```### VSCode information (optional)
If you are VSCode users, you can have a better integration with VSCode by installing the suggested extension in `.vscode/extension.json`. The starter code comes up with Settings for a seamless integration with VSCode. The Debug configuration is also provided for frontend and backend debugging experience.
Pro tips: if you need a project wide type checking with TypeScript, you can run a build with Cmd + Shift + B on Mac.
### Contributions
Everyone is welcome to contribute to this project. Feel free to open an issue if you have question or found a bug.
### License
Licensed under the MIT License, Copyright © 2020
See [LICENSE](LICENSE) for more information.
---
Made with [CreativeDesignsGuru](https://creativedesignsguru.com)'s template