Node and front end development environment
1. Node and front end development environment
As a first step in this course we will go through Node as a development environment and the basics of handling web sites and javascript projects.
-
Install NodeJs
- Clone this repo:
- create a projects folder or use an existing one
- run command: git clone https://github.com/filinils/FrontEndSeries.git
- Checkout a new branch: git checkout -b <your branch>
- Initiate projects
- In the folder “simpleEnv” there is a example project setup.
- Navigate to “client” folder from terminal/cmd
- Run “npm install”
- Run “npm start”
This should start a webpack project.
- Navigate to “server” folder
- run “npm install”
This should start a simple example express server.
-
Optional steps:
- Start mapping out you “index.html” file with tags.
- Start create som basic styling.
- Try consuming the express(/api/experience) api endpoint from JavScript without adding any libraries.(Hint: figure out a way of allowing “CORS”)
- Present the result on your page.