- Ruby 57.5%
- HTML 30.5%
- JavaScript 6.6%
- CSS 3.2%
- Dockerfile 0.8%
- Other 1.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* API boilerplate, token db setup, authentication, authorization, rate limits, ping pong route * users GET * pastes GET/POST/PATCH/DELETE * scratchpad api * copy * add links to API documentation * revoke API tokens when changing password * scrutinize strings a bit harder * enforce json content type for API * clamp page number between min and max * refactor user checks into find_public_user * better handle rate limiting for batch paste creation * bundle update and fix tests * obey brakeman * brakeman ignore |
||
| .direnv | ||
| .github/workflows | ||
| .kamal | ||
| app | ||
| bin | ||
| config | ||
| db | ||
| lib/tasks | ||
| log | ||
| public | ||
| script | ||
| storage | ||
| test | ||
| tmp | ||
| vendor | ||
| .dockerignore | ||
| .envrc | ||
| .gitattributes | ||
| .gitignore | ||
| .rubocop.yml | ||
| .ruby-version | ||
| config.ru | ||
| Dockerfile | ||
| flake.lock | ||
| flake.nix | ||
| Gemfile | ||
| Gemfile.lock | ||
| Procfile.dev | ||
| Rakefile | ||
| README.md | ||
speedpastes
Speedpastes.org is an open source, invite-only, social note-taking platform which serves as an alternative to the malware-ridden pastebin.
Getting Started
Remember to configure your shell to use direnv! Add the following lines at the end of your ~/.bashrc:
eval "$(direnv hook bash)"
Then open your terminal and do
git clone git@github.com:rjoken/speedpastes.git
cd speedpastes
If you have everything set up correctly, direnv should complain:
direnv: error /home/username/speedpastes/.envrc is blocked. Run `direnv allow` to approve its content
If it doesn't, please check it is hooked correctly into your SHELL.
Once you see the error message, simply run:
direnv allow
Follow the prompts, and allow it to download the packages it needs. Once done, run:
bundle install
Once dependencies are installed, simply run:
dev
to start all services locally.
Databases
speedpastes will start a postgresql instance on port 6666. You may modify the DEV_DATABASE_URL if you want to point speedpastes to a different database.
Authentication
This application has basic email and password authentication with rails default implementation, however some changes have been made to facilitate the invite code system.
Testing
bin/rails test