raghavp96 / website

My Website, written in Elm (https://elm-lang.org/)

Home Page:https://raghavp96.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website

This is my website, written in Elm! This is my first extensive project with Elm and I learned a lot - there's still a lot of stuff I don't know, but it's a start :). This project is bootstrapped with Create Elm App.

Available scripts

In the project directory you can run:

  • elm-app start : Runs the app in the development mode. The browser should open automatically to http://localhost:3000. If the browser does not open, you can open it manually and visit the URL. The page will reload if you make edits. You will also see any lint errors in the console.

  • elm-app install : Alias for elm install. Used for installing Elm packages from package.elm-lang.org

  • elm-app test : Runs tests with node-test-runner

  • elm-app build : Builds the app for production to the build folder. The build is minified, and the filenames include the hashes. App is ready to be deployed! (Calling the deploy script instead is porbably safer)

Notes

  • Favicon created with Favicon generator. Settings:

    • Text: "R"
    • Background: Circle
    • Font Family: VT323
    • Font Size: 110
    • Font Color: #FFFFFF
    • Background Color: #D45F5A
  • Will be redesigning this at some point.

Build, Push, Deploy

  • I've configured two remotes:

    origin	https://github.com/raghavp96/website.git (fetch)
    origin	https://github.com/raghavp96/website.git (push)
    public	https://github.com/raghavp96/raghavp96.github.io.git (fetch)
    public	https://github.com/raghavp96/raghavp96.github.io.git (push)
    
  • I want to not have to deal with building the app and pushing the build output to Github on my master branch, but Github Pages requires it (otherwise I wouldn't be able to use the default user namespace for my website). The public remote's master branch is where I push the build output, keeping it away from the source code (which remains in origin master.

  • To push then - we run ./deploy.sh, which will:

    • push the committed source code to origin master
    • build the project with elm-app build, push the build folder to public master

About

My Website, written in Elm (https://elm-lang.org/)

https://raghavp96.github.io


Languages

Language:Elm 63.0%Language:JavaScript 22.5%Language:HTML 7.1%Language:CSS 6.8%Language:Shell 0.7%