Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mrinjamul/the-science-of-deduction

The Science of Deduction: A Sherlock fan-based blogging site.
https://github.com/mrinjamul/the-science-of-deduction

blog blogging fan-based forum gin go mystery sherlock the-science-of-deduction

Last synced: about 1 month ago
JSON representation

The Science of Deduction: A Sherlock fan-based blogging site.

Awesome Lists containing this project

README

        


logo

the-science-of-deduction




A collection of resources for learning the science of deduction 😜.

A Sherlock fan-based blogging site.
screenshot


## Requirements

- [Golang](https://golang.org/dl/)
- [Docker](https://docs.docker.com/get-docker/) (Optional but recommended)
- [Postgresql](https://www.postgresql.org/download/) (**Only if you are not using `docker`**)

### Development

To get started, you can clone the repository and run the following commands:

```bash
git clone https://github.com/mrinjamul/the-science-of-deduction.git
```

To install the dependencies, run the following commands:

```bash
cd the-science-of-deduction
go mod download
```

Copy environment variables file and replace the values with your own.

```bash
cp .env.example .env
```

To run the application, run the following commands:

```bash
export $(cat .env | xargs)
go build
./the-science-of-deduction
```

To build the application (production), run the following commands:

```bash
go build
export $(cat .env | xargs)
./the-science-of-deduction
```

To start with logging into file,

```sh
(./the-science-of-deduction 2>&1 ) |& tee "output-$(date -I)-$RANDOM.log"
```

### License

- open sourced under the [MIT license](LICENSE)