From 8d70e670eec3db57fc912ab3a56c8198cbaa5310 Mon Sep 17 00:00:00 2001 From: grumbulon Date: Mon, 4 Apr 2022 10:25:19 -0400 Subject: [PATCH] readme added finally and sample systemd service file --- README.md | 23 +++++++++++++++++++++++ waifurudor.de.service | 14 ++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 README.md create mode 100644 waifurudor.de.service diff --git a/README.md b/README.md new file mode 100644 index 0000000..a2f368a --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# waifurudor.de + +It's like foxrudor.de for anime girls, but worse + +## Server Install +Clone the repo to where ever you will be hosting this and run the following command to install the dependencies. + +``` +npm install +``` + +Now that the dependencies are taken care of you can verify it runs with `npm start` in the root directory of the project. If it tells you it is listening on a port you're probably good to go. + +## Running as a service +I don't know anything so I spent some time (10 minutes) creating the provided sample systemd service file. + +The user in the file needs accesss to the assets directory under `./waifurudor.de/src/public/` so the """app""" can pull images from Danbooru. + +## Nginx +Yeah I set up a .conf file for this for my test instance but it sucks and you could probably do better so I won't share it just know it is possible to actually run this as a website. + +### What's next +I have some small improvements in mind before I give up and call this "done". \ No newline at end of file diff --git a/waifurudor.de.service b/waifurudor.de.service new file mode 100644 index 0000000..16492d2 --- /dev/null +++ b/waifurudor.de.service @@ -0,0 +1,14 @@ +[Unit] +Description=waifurudor.de + +[Service] +ExecStart=npm start +Restart=always +User=none +Group=nogroup +Environment=PATH=/usr/bin:/usr/local/bin +Environment=NODE_ENV=production +WorkingDirectory=/whatever/user/waifurudor.de/src/ + +[Install] +WantedBy=multi-user.target \ No newline at end of file