This is my about me page, available on GitHub. It was made using Webpack and Clojure. Why Clojure?
Make sure you have these prerequisites installed. Any similar version will likely work fine ...
Tool | Version I used |
---|---|
Clojure | 1.10.1.469 |
Lein Build Tools | 2.9.1 on Java 13 |
node.js / npm | 12.9.1 / 6.13 |
Git | 2.23.0 |
hub | 2.12.8 |
If you run into permission problems with npm (not just with this project ... this is a problem with many non-rvm installs), run this terminal command to make sure npm global repo permissions are sufficient:
sudo chown -R $(id -un):$(id -gn) $(npm root -g)
Run the setup_macos.sh
if you use macOS ...
This will do everything!
or take the long way around ...
- Setup local project and git repo
# choose a repo name for your 'about me' page
site_name='clojure_site'
# set your GitHub username from Git ... or just type it in...
user_name=$(git config user.name)
repo_name="https://github.com/${user_name}/${site_name}"
git clone https://github.com/skeptycal/clojure_site $site_name
cd $site_name
- Setup Github remote repository:
# Rename remote repo. if you wish to remove the remote, use this:
# git rm -rf .git && git init
git remote rename origin upstream
# create remote repo
hub create
# initial git commit and github push
git add all
git commit -m 'initial commit'
git push --set-upstream origin $(git_current_branch)
echo 'Github remote repositories:'
git remote -v
make install
make watch
make serve
make build
make github
make deploy