Made with ❤️ using Ambiorix
- R >= 4.1.0
-
Clone the repo and
cd
into it:[email protected]:kennedymwavu/mwavu.git
cd mwavu
-
Create an
env
file (.Renviron
) at the root dir of the project and add this variable:RENV_CONFIG_SANDBOX_ENABLED = FALSE
-
Restore package dependencies:
R -e "renv::restore()"
The
-e
flag tells R to execute that expression and exit.
Rscript index.R
Then visit localhost:8000 to view the app.
I have used mailgun to forward messages entered in the contact page form to my email.
If you need the form to work you will have to:
-
Create a mailgun account, add a sending domain, and create an API key.
-
Add these variables to your
.Renviron
:MAILGUN_API_KEY = your-mailgun-api-key MAILGUN_SENDING_DOMAIN = your-mailgun-sending-domain EMAIL = your-personal-email
- Build the docker image:
docker build -t personal-website .
- Run the services via docker compose:
This will run the app on port 1028 of the host machine, so you will view it at localhost:1028
docker compose up -d
- To stop the services do:
docker compose down