My website rewrite in Express.js
Go to file
b1ek 91227c128a
legacy mode list
2023-03-18 17:16:00 +10:00
.vscode base 2023-02-13 11:16:46 +10:00
config add guestbook 2023-02-20 00:19:46 +10:00
data remove data & add gitignore 2023-03-12 02:23:27 +10:00
docs add accounts docs 2023-02-23 16:54:26 +10:00
helpers add minify middleware 2023-03-06 00:26:56 +10:00
middleware legacy mode list 2023-03-18 17:16:00 +10:00
migrations remove in second migration 2023-02-23 16:44:39 +10:00
models fix 500 on project/* 2023-03-17 20:53:27 +10:00
public dillo compatibility 2023-03-18 13:06:03 +10:00
react/resume zsh command 2023-03-18 12:46:45 +10:00
routes fix guestbook rss 500 2023-03-18 17:02:58 +10:00
scripts rewrite generate key script in python 2023-03-17 20:54:21 +10:00
test change app key length to 32 bytes 2023-02-19 01:29:32 +10:00
view legacy mode list 2023-03-18 17:16:00 +10:00
.env.example add trust proxy 2023-03-12 12:17:24 +10:00
.gitignore ignore temporary files 2023-03-11 11:46:51 +10:00
Dockerfile.dev dont install twice 2023-03-12 12:23:43 +10:00
Dockerfile.prod dont install twice 2023-03-12 12:23:43 +10:00
LICENSE.md add license 2023-03-04 10:31:26 +10:00
README.md replace demo with link to site 2023-03-17 22:34:51 +10:00
dev.sh check for dotenv in scripts 2023-03-17 19:02:48 +10:00
docker-compose.dev add docker dev/prod variants 2023-03-10 17:39:12 +10:00
docker-compose.prod add restarts 2023-03-12 12:22:48 +10:00
gulpfile.js add adminer and guestbook delete 2023-02-20 12:43:53 +10:00
index.js add trust proxy 2023-03-12 12:17:24 +10:00
install fix typo 2023-03-12 23:54:18 +10:00
nodemon.json base 2023-02-13 11:16:46 +10:00
package.json add dev env script 2023-03-11 19:51:41 +10:00
prod.sh check for dotenv in scripts 2023-03-17 19:02:48 +10:00
startup.js build resume on startup 2023-03-10 17:39:27 +10:00

README.md

homepage.js

This is a rewrite of my current website to Express.JS.
Git repo | Website

Running an instance

First, generate the app key.

Debug

cp .env.example .env
APP_DEBUG=true sudo ./install
docker-compose up -d

Production

Note: production instance is not production-ready yet, as it is still in development mode.

cp .env.example .env
echo "APP_DEBUG=false" >> .env # Or edit the file yourself
sudo ./install
docker-compose up -d

Also dont forget to build the resume app

Build the resume

cd to react/resume and run build.sh.
If you are running in debug mode, run yarn/npm start

Generate the key

Cd to root of project and run scripts/generate_key.py