homepage.js/README.md

36 lines
1.0 KiB
Markdown
Raw Normal View History

2023-02-19 10:54:30 +01:00
# homepage.js
2023-03-01 07:15:02 +01:00
This is a rewrite of my current website to Express.JS.
2023-03-17 13:34:51 +01:00
[Git repo](https://git.blek.codes/blek/homepage.js) | [Website](https://blek.codes)
2023-03-01 07:05:28 +01:00
2023-06-06 06:11:07 +02:00
# 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.
2023-03-01 07:05:28 +01:00
# Running an instance
2023-03-11 15:42:36 +01:00
First, [generate the app key](#generate-the-key).
2023-03-01 07:05:28 +01:00
### Debug
```bash
cp .env.example .env
./dev.sh # this will do most of the work
2023-03-01 07:05:28 +01:00
docker-compose up -d
```
### Production
```bash
cp .env.example .env
echo "APP_DEBUG=false" >> .env # Or edit the file yourself
./prod.sh # this will do most of the work
2023-03-01 07:05:28 +01:00
docker-compose up -d
2023-03-11 15:28:17 +01:00
```
Also dont forget to build the [resume app](#build-the-resume)
## Build the resume
cd to `react/resume` and run `build.sh`.
2023-06-06 06:14:30 +02:00
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.
2023-03-11 15:42:36 +01:00
## Generate the key
2023-03-17 11:54:21 +01:00
Cd to root of project and run `scripts/generate_key.py`