My website rewrite in Express.js
Go to file
blek 001fb0ea02
add icons to the left bar
2023-10-28 17:33:13 +10:00
.vscode base 2023-02-13 11:16:46 +10:00
config serve static files over nginx 2023-10-02 17:10:47 +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 ban tor in guestbook 2023-04-20 16:40:47 +10:00
middleware add browser detection 2023-03-19 19:18:34 +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 add icons to the left bar 2023-10-28 17:33:13 +10:00
react remove resume 2023-03-19 13:00:26 +10:00
routes fix the request loop bug 2023-10-28 17:24:54 +10:00
scripts fix keys(again) 2023-03-19 19:18:14 +10:00
store ban tor in guestbook 2023-04-20 16:40:47 +10:00
test change app key length to 32 bytes 2023-02-19 01:29:32 +10:00
view add icons to the left bar 2023-10-28 17:33:13 +10:00
.env.example ban tor in guestbook 2023-04-20 16:40:47 +10:00
.gitignore ignore temporary files 2023-03-11 11:46:51 +10:00
Dockerfile.dev strip down useless and time consuming commands 2023-03-26 12:53:02 +10:00
Dockerfile.prod strip down useless and time consuming commands 2023-03-26 12:53:02 +10:00
LICENSE.md add license 2023-03-04 10:31:26 +10:00
README.md mention dev.sh and prod.sh in the readme 2023-10-02 17:10:48 +10:00
dev.sh check if build was successful in scripts 2023-04-20 15:59:48 +10:00
docker-compose.dev serve static files over nginx 2023-10-02 17:10:47 +10:00
docker-compose.prod serve static files over nginx 2023-10-02 17:10:47 +10:00
gulpfile.js add adminer and guestbook delete 2023-02-20 12:43:53 +10:00
index.js configure this to run behind nginx 2023-10-02 17:10:39 +10:00
install change dev packages 2023-03-19 16:33:33 +10:00
nodemon.json base 2023-02-13 11:16:46 +10:00
package.json ban tor in guestbook 2023-04-20 16:40:47 +10:00
prod.sh check if build was successful in scripts 2023-04-20 15:59:48 +10:00
startup.js dont execute any commands on startup 2023-03-26 12:52:14 +10:00

README.md

homepage.js

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

Warning: This branch is experimental

This branch is untested and unstable, and probably won't work in production.

Please don't use it for other purposes that development.

Running an instance

First, generate the app key.

Debug

cp .env.example .env
./dev.sh # this will do most of the work
docker-compose up -d

Production

cp .env.example .env
echo "APP_DEBUG=false" >> .env # Or edit the file yourself
./prod.sh # this will do most of the work
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.

Note: Generally, the app will build the resume by itself, although there is some exceptions.

Generate the key

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