I am running 8 websites in production environments and all with Nim as the 
backend.

I have 3 different setups for maintaining and updating the websites:

  1. Some of websites have base on GIT repositories and I have a small update 
file, which preserves special configs such as API keys and IP's when doing a 
pull.
  2. Public GIT repos uses Nimble, such as 
[https://nimwc.org](https://nimwc.org)
  3. The last website is currently handheld, due to a complex structure and a 
requirement for a high uptime, [https://cxmanager.live](https://cxmanager.live)



At the moment I am in the process of moving a couple of websites from Wordpress 
to NimWC. This will be done with classic cloning of repository and compiling on 
the server.

I have been hosting a MQTT broker with 
[https://github.com/barnybug/nim-mqtt](https://github.com/barnybug/nim-mqtt) 
and 
[https://github.com/tekjar/nimqtt-protocol](https://github.com/tekjar/nimqtt-protocol).
 But they could not be integrated properly with async in my setup, so I have 
moved to Mosquitto, where Nim just reads the output stream. This is integrated 
with my Nim program and running in production at the moment.

I am hosting a websocket with 
[https://github.com/niv/websocket.nim](https://github.com/niv/websocket.nim) , 
which works smoothless with my website based on 
[https://github.com/ThomasTJdev/nim_homeassistant](https://github.com/ThomasTJdev/nim_homeassistant).

> Did you use nim for the backend (using jester etc.), the frontend 
> (javascript, etc.), or both?

Jester & old school JS

> Did you use a container such as Docker? Which kind?

Nope.

> What web server software did you front it with? (Apache, NGINX, etc?)

Nginx.

> Did you host any DB (MySQL, etc.) or Messaging (RabbitMQ, etc) yourself or 
> did you use a cloud service?

Depends on the website. SQLite locally (for small websites and quick 
deployment) & Postgres in the cloud and locally,

> Which hosting company did you work with? Is the web site on a single 
> instance, or have you gotten it to work in a cluster?

AWS, single instance, Nas and RPi's.

> Store your nim source in a repo mixed in with your assets (CSS, images, 
> etc.)? How did you separate for production?

Mixed. I use option 1 & 3 above to separate the files.

Reply via email to