https://github.com/puchka/memecollect
Application for collecting meme and sharing meme collection
https://github.com/puchka/memecollect
clojure clojurescript collect-memes collection collections meme memes
Last synced: 3 months ago
JSON representation
Application for collecting meme and sharing meme collection
- Host: GitHub
- URL: https://github.com/puchka/memecollect
- Owner: puchka
- License: epl-2.0
- Created: 2020-02-13T10:28:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T17:35:36.000Z (about 1 year ago)
- Last Synced: 2025-02-13T19:21:56.133Z (4 months ago)
- Topics: clojure, clojurescript, collect-memes, collection, collections, meme, memes
- Language: Clojure
- Size: 55.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# memecollect
A Clojure application destined to help users find and
collect memes that correspond on their sense of humor.## Usage
Running with Docker
-------------------First, put the following environment variable inside a file e.g. `.env` in home directory
- **MEMECOLLECT_BASE_URL** Base URL for the memecollect app
- **MEMECOLLECT_SMTP_HOSTNAME** SMTP Hostname for sending email
- **MEMECOLLECT_SMTP_PORT** SMTP Port for sending email
- **MEMECOLLECT_SMTP_USERNAME** SMTP Username for the SMTP server
- **MEMECOLLECT_SMTP_PASSWORD** SMTP Password for the SMTP serverSecond, run the following commands in a shell.
```sh
$ docker build -t memecollect .
$ docker run --env-file=.env -it --rm -p 3000:3000 memecollect
```Then navigate to http://localhost:3000 to see pieces of arts that
are proposed to you.To run locally
--------------### Environment variables
The following environment variables are required before running memecollect.
e.g. This can be done by defining them in a shell script and run it with `source .env`- **MEMECOLLECT_DATA_DIR** Path to the data directory
- **MEMECOLLECT_BASE_URL** Base URL for the memecollect app
- **MEMECOLLECT_SMTP_HOSTNAME** SMTP Hostname for sending email
- **MEMECOLLECT_SMTP_PORT** SMTP Port for sending email
- **MEMECOLLECT_SMTP_USERNAME** SMTP Username for the SMTP server
- **MEMECOLLECT_SMTP_PASSWORD** SMTP Password for the SMTP serverRun the following commands in different shells after defining the environment variables described above:
```sh
$ lein figwheel
```
```sh
$ export $(cat .env | xargs) && lein run
```## Directory Structure of the project
```
.
|-- CHANGELOG.md
|-- data
|-- doc
| -- intro.md
|-- Dockerfile
|-- LICENSE
|-- project.clj
|-- README.md
|-- resources
| -- public
| |-- css
| | -- design.css
| |-- images
| | -- memecollect-logo.png
| -- js
| |-- app.js
| -- out
|-- src
| -- memecollect
| |-- core.clj
| |-- core.cljs
| |-- data
| | -- persistence.clj
| |-- misc.clj
| |-- users.clj
| |-- util
| | |-- properties.clj
| | -- sendmail.clj
| -- views
| |-- contents.clj
| -- layout.clj
|-- test
| -- memecollect
| -- core_test.clj
```## License
Copyright © 2024
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0.This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License, v. 2.0 are satisfied: GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or (at your
option) any later version, with the GNU Classpath Exception which is available
at https://www.gnu.org/software/classpath/license.html.