Follow ONE of each step
- Install package manager
- Serve to localhost (SKIP if you want to use a JS library)
- Select a language/framework
- Select a component library (optional)
- Challenge: consider universal design
These tools are meant to help download the different packages, frameworks, languages you'll need to code.
MACOS
Using Homebrew (Macos package manager) to install what is needed via the terminal.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew search package_name // search for packages
brew install package_name
WINDOWS
Windows Package Manager winget command-line tool is bundled with Windows 11 and modern versions of Windows 10 by default as the App Installer src
winget search package_name
Otherwise links to direct download sources will be given.
This workshop is visual, so we need someplace to see the results of our work, our CANVAS if you will. These tools build the easel upon which you can put your canvas The info here has been sourced from devpractical.com written by Avic Ndugu
Has a built-in server that can run your html files as needed (Has an existing carpenter that can build an easel for your canvas)
Install via terminal
python --version // check if you have it
Or their website
THEN
If you have a MAC or LINUX machine
- open the terminal
- navigate to this project and make a new folder called src
cd ~/code-n-sip
mkdir src
cd src
- run
python -m SimpleHTTPServer (optional-Port-Number-Here-Without-The-Parantheses)and you can optionally add a port number on the same line to serve it on a spesific port - You will see a
Serving HTTP on 0.0.0.0 port xyz - go to
localhost:xyz
You are now ready to code
php --version // check if you have it
- open the terminal
- navigate to this project and make a new folder called src
cd ~/code-n-sip
mkdir src
cd src
- run
php -S 0.0.0.0:8000orphp -S localhost:8000(you can pick which port number you want if you don't like 8000) - go to
localhost:8000
Yer ready to code!
Make sre you get the LTS version or via terminal:
node --version // check if you have'm...
npm --version // ...or when you install, check versions
brew search node // search
winget search node // search
// make sure you get the LTS version by selecting a version that has @
brew install node@10
winget install node@10
- open the terminal
- navigate to this project and make a new folder called src
cd ~/code-n-sip
mkdir src
cd src
- install http-server
npm install http-server -g - run
http-server - visit your localhost
You're ready to code!
Languages and frameworks for making the website, these tools are what will carry your proverbial paint and make an artwork upon your canvas.
Whether you slather the paint on with your bare fingers or dare to try a palette knife is up to you.
For just straight up and styling using CSS.
- Within your
srcfolder, make a file calledindex.html - Here is a simple beginner tutorial for plain html websites
- Here's an HTML cheat sheet
- And CSS information
For adding scripting to HTML and CSS to make the website more interactive and dynamic
- Follow steps for ONLY Html and CSS
- use this Javascript cheat sheet and the internet to figure things out.
Most if not all of these packages come with a way to run and refresh your web page, along with built in components to make building websites a quicker process.
create-react-app sets up a react project pretty quickly
Setup
npm --version // if you have over version 5.1 use npx
// if you have version under 5.1:
npm install -g create-react-app
create-react-app codesip
// else:
npx create-react-app my-app
cd my-app
npm start
Run
npm i //first time install, run every time you add a new package
npm run start //starts localhost
npm install - g @angular/cli
ng new codesip // setup environment
Info here Follow the setup in the link, as you can choose between a new and old setup
Ember.js is an open source, free JavaScript client-side framework used for developing web applications. It provides the new binding syntax using the HTMLBars template engine which is a superset of the Handerlbars templating engine. It provides the Glimmer rendering engine to increase the rendering speed.
npm install -g ember-cli
ember new codesip // setup environment
From Creating and running application
Mithril.js is a modern client-side JavaScript framework for building Single Page Applications. It's small (< 10kb gzip), fast and provides routing and XHR utilities out of the box. For this, follow the Quick Start with webpack guide
Polymer.js is an open source JavaScript library developed by Google. It is developed to allow reusing the HTML elements for building applications with components.
npm install -g polymer-cli@next
polymer -version
polymer init // setup environment
polymer serve // to start the application
npm create vite@latest codesip -- --template svelte
cd codesip
npm install
npm run dev
Honestly I have never tried this before so good luck:
If you are new to this, check out prettier and eslint to format and check you code.
In the package.json file add (or check that it has) under "scripts":
"lint-check": "eslint --cache --ext .js,.ts,.tsx --max-warnings=0 ./src --ignore-path .gitignore",
"format": "prettier --write \"**\""
then you can run npm run format or npm run lint
Component libraries make pretty things (icons, buttons, dropdowns, headers etc...) with some level of standardization
Make the webpage WCAG compliant, considering the requirements given on their website
or a TL;DR short challenge list
- Components should have enough color and value contrast that makes it easy to distinguish them from each other
- if you squint while looking at your screen you should be able to tell if a thing has text on it
- Components should be visible and make sense even when zooming in 400%
- Navigating with a keyboard should jump to correct components
- tabbing around the page should lead to places that makes sense
- any image or component that does not have a label or content should be given a label describing its function
- images need to have a text describing their contents
- any video you may think to put up better be translated