Skip to content

hackershare/hackershare

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
Mar 7, 2022
bin
Jun 27, 2021
db
Jun 29, 2021
Jun 27, 2021
log
Aug 17, 2020
Aug 17, 2020
Jun 29, 2021
tmp
Aug 17, 2020
Aug 17, 2020
Aug 17, 2020
Mar 6, 2022
Oct 1, 2020
Aug 17, 2020
Aug 17, 2020

Hackershare

Social bookmarks website for hackers. Alternative to delicious, hackernews, pocket. Hackershare is the open source software which powers hackershare.dev

There is also a project introduction article for your reference: hackershare: Social bookmarking reinvented!

CI

Dependencies

Setup local

Setup by Docker

  1. Make a copy of the example environment file and modify as required [optional].
cp .env .env.local
  1. Build the images.
docker-compose build
  1. After building the image or after destroying the stack you would have to reset the database using the following command.
docker-compose run --rm rails bundle exec rails db:create
docker-compose run --rm rails bundle exec rails db:migrate
docker-compose run --rm rails bundle exec rails db:seed_fu

or 

docker-compose run --rm rails bundle exec rails db:reset
docker-compose run --rm rails bundle exec rails db:seed_fu
  1. Run app
docker-compose up
  1. stop app
docker-compose down

Deployment

  • Nginx conf sync: bundle exec cap production puma:nginx_config
  • Deploy: bundle exec cap production deploy

Chrome extension

Refresh sitemap

  • bundle exec rake sitemap:refresh