Please see the infra repo for everything infrastructure and platform related to this project.
mark.wilson.codes was created to provide an online presence and as a demonstration of DevOps and web development skills. There will be a strong focus on DevOps and back-end web development, with a few interactive demos down the line.
The name also tells you who I am and what I do!
For the web framework, I have chosen Laravel Jetstream as it provides out-of-the-box user authentication, easy Vue prop hydration via Inertia.js, and back-end routing handled by Laravel.
Cost is a key consideration, and therefore I have chosen to use DigitalOcean as my cloud environment. A similar setup on AWS would be around 5x the cost of DigitalOcean.
This site runs locally in docker utilising configuration from Laravel Sail.
- Copy the environment file example
.env.example
to.env
- Install php/composer locally, and run
composer install
- Add the
sail
alias to your .zshrc/.bashrc file:
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
- Configure and bring up your docker containers:
sail up && \
sail artisan key:generate && \
sail artisan migrate && \
sail npm install && \
sail npm run dev
- Edit your
/etc/hosts
file and add
127.0.0.1 markwcodes.test
- The site should now be accessible at markwcodes.test