Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hackershare/hackershare

Hackershare is a powerful social bookmarking service and a knowledge-sharing community, with advanced search and tag management feature
https://github.com/hackershare/hackershare

bookmark delicious hackernews pocket producthunt reddit rss rss-feed

Last synced: 8 days ago
JSON representation

Hackershare is a powerful social bookmarking service and a knowledge-sharing community, with advanced search and tag management feature

Awesome Lists containing this project

README

        

# Hackershare

Social bookmarks website for hackers. Alternative to delicious, hackernews, pocket.
Hackershare is the open source software which powers [hackershare.dev](https://hackershare.dev)

There is also a project introduction article for your reference: [hackershare: Social bookmarking reinvented!](https://blog.hackershare.dev/2020/09/22/hackershare-social-bookmarking-reinvented/)

[![CI](https://github.com/hackershare/hackershare/workflows/CI/badge.svg)](https://github.com/hackershare/hackershare/actions)

## Dependencies

* [Postgresql 12](https://www.postgresql.org)
* [Rails 6](https://github.com/rails/rails)
* [Stimulusjs](https://github.com/hotwired/stimulus)
* [Turbolinks 5](https://github.com/turbolinks/turbolinks)
* [rails-ujs](https://github.com/rails/rails/tree/main/actionview/app/assets/javascripts)
* [ImageMagick](https://github.com/ImageMagick/ImageMagick)
* [Redis](https://redis.io)

## Setup local

* [PG extension install](https://github.com/hackershare/hackershare/blob/main/docs/pg_extension.md)
* rails db:create
* rails db:migrate
* rails db:seed_fu

## Setup by Docker

1. Make a copy of the example environment file and modify as required [optional].

```
cp .env .env.local
```

2. Build the images.

```
docker-compose build
```

3. 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
```

4. Run app

```
docker-compose up
```

5. stop app

```
docker-compose down
```

## Deployment

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

## Chrome extension

* https://github.com/hackershare/hackershare-ext
* https://chrome.google.com/webstore/detail/hackershare/pinmchdpdbjbhijbagmealcojjpeebmh

## Refresh sitemap

* bundle exec rake sitemap:refresh