~etalab/sill.etalab.gouv.fr

[EN] Web application for the "socle lnterministériel de logiciels libres"
740b8567 — Bastien Guerry 3 days ago
src/cljc/sillweb/i18n.cljc: s/free/free "libre"/g
2b058a6d — Bastien Guerry 19 days ago
Update outdate references to github.com
9b3e01ab — Bastien Guerry 22 days ago
Merge branch 'master' into production

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~etalab/sill.etalab.gouv.fr
read/write
git@git.sr.ht:~etalab/sill.etalab.gouv.fr

You can also use your local clone with git send-email.

#What is this repository?

This repository contains the source code for the SILL, the catalog of recommended free software for the public sector.

The list of software itself is maintained on this repository.

img

#Develop

~$ git clone https://git.sr.ht/~etalab/sill.etalab.gouv.fr
~$ cd sillweb/
~$ clj -M:test
~$ clj -M:run
~$ clj -M:fig

Check http://locahost:9500 then hack and see changes going live.

#Deploy

#Configure environment variables

You will need to configure these environment variables:

SMTP_HOST: the host from which to send emails
SMTP_LOGIN: the smtp login to use to send emails
SMTP_PASSWORD: the smtp password to use to send emails
SILLWEB_ADMIN_EMAIL: the email where to receive messages
SILLWEB_FROM: the From header for sent emails
SILLWEB_PORT: the port to run the application
SILLWEB_MSGID_DOMAIN: what fqdn to use to build the message-id
SILLWEB_STATIC_FILES_PATH: where to store static files (no trailing slash)

#Deploy as a jar

~$ git clone https://git.sr.ht/~etalab/sill.etalab.gouv.fr
~$ cd sillweb/
~$ clj -M:js
~$ clj -M:uberdeps
~$ java -cp target/sillweb.jar clojure.main -m sillweb.server

Then go to https://localhost:3000 or to your custom base URL.

#Deploy with Docker

Assuming your environments variables are stored in ~/.sillweb_envs and you want to expose the 3000 port:

~$ git clone https://git.sr.ht/~etalab/sill.etalab.gouv.fr
~$ cd sillweb/
~$ clj -M:js
~$ clj -M:uberdeps
~$ docker build -t sillweb .
~$ docker run -it -p 3000:3000 --env-file=~/.sillweb_envs sillweb

Then go to http://localhost:3000.

#Contributing

The development of this repository happens on the SourceHut repository.

The code is also published on GitHub to reach more developers, but please do not send pull requests there.

You can send patches by email using git-send-email.io. For your patches to be processed correctly, configure your local copy with this:

git config format.subjectPrefix 'PATCH sill.etalab.gouv.fr'

You can also contribute with bug reports, feature requests or general questions by writing to ~etalab/codegouvfr-devel@lists.sr.ht.

#Support the Clojure(script) ecosystem

If you like Clojure(script), please consider supporting maintainers by donating to clojuriststogether.org.

#License

2019-2021 DINUM, Bastien Guerry.

This application is published under the EPL 2.0 license.