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!
- Postgresql 12
- Rails 6
- Stimulusjs
- Turbolinks 5
- rails-ujs
- imagemagic
- redis
- PG extension install
- rails db:create
- rails db:migrate
- rails db:seed_fu
- Make a copy of the example environment file and modify as required [optional].
cp .docker.env .env
- Build the images.
docker-compose build
- 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
- Run app
docker-compose up
- stop app
docker-compose down
- Nginx conf sync: bundle exec cap production puma:nginx_config
- Deploy: bundle exec cap production deploy
- https://github.com/hackershare/hackershare-ext
- https://chrome.google.com/webstore/detail/hackershare/pinmchdpdbjbhijbagmealcojjpeebmh
- bundle exec rake sitemap:refresh