My website rewrite in Express.js
Go to file
b1ek f22c2873d8
fix permission
2023-03-12 02:04:30 +10:00
.vscode base 2023-02-13 11:16:46 +10:00
config add guestbook 2023-02-20 00:19:46 +10:00
data/userdata half baked user system 2023-02-25 16:32:11 +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 add services page 2023-03-09 23:26:00 +10:00
migrations remove in second migration 2023-02-23 16:44:39 +10:00
models add services page 2023-03-09 23:26:00 +10:00
public fix <a> styles (just a fix, not a solution) 2023-03-12 00:02:30 +10:00
react/resume write some text in about file (resume) 2023-03-12 01:47:37 +10:00
routes refactor template loading mechanism 2023-03-12 01:54:53 +10:00
scripts add accounts 2023-02-23 16:51:19 +10:00
test change app key length to 32 bytes 2023-02-19 01:29:32 +10:00
view fix condition 2023-03-12 00:57:26 +10:00
.env.example use redis for sessions 2023-02-19 12:25:01 +10:00
.gitignore ignore temporary files 2023-03-11 11:46:51 +10:00
Dockerfile.dev hardcode in dev too 2023-03-11 23:10:15 +10:00
Dockerfile.prod hardcode a line (it deletes docker files) 2023-03-11 22:23:00 +10:00
LICENSE.md add license 2023-03-04 10:31:26 +10:00
README.md mention key generation 2023-03-12 00:42:36 +10:00
dev.sh add message to dev script 2023-03-12 00:02:07 +10:00
docker-compose.dev add docker dev/prod variants 2023-03-10 17:39:12 +10:00
docker-compose.prod production compose image 2023-03-12 02:03:39 +10:00
gulpfile.js add adminer and guestbook delete 2023-02-20 12:43:53 +10:00
index.js add minify middleware 2023-03-06 00:26:56 +10:00
install install scripts dependencies in install script 2023-02-23 16:55:19 +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 fix permission 2023-03-12 02:04:30 +10:00
startup.js build resume on startup 2023-03-10 17:39:27 +10:00
vinicius vinicius 2023-03-11 12:05:29 +10:00

README.md

homepage.js

This is a rewrite of my current website to Express.JS.
Git repo | Demo (may or may not work)

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

Install node modules in following directories: ., ./scripts
Then, cd to root and run node scripts/generate_key.js