-
Notifications
You must be signed in to change notification settings - Fork 1
3. Background Learning
This section is for people who have no experience with Web App and Javascript. If you have experience with Javascript, npm, and webpack, you can follow this official tutorial directly from SOLID Write a SOLID application.
If you are like me who don't have any experiment with Web App, Javascript, npm, webpack, I would suggest learning some knowledge about Javascript first. I followed two tutorial videos:
Then, I would suggest you learn how to use npm and webpack:
- npm Get started, Tutorial, Crash course, Installation
- webpack Get started, Installation
After learning from the above tutorials and before you start programming the app:
-
Make sure you have installed recently updated npm.
npm -v
-
Start with ../dist/index.html and ../src/index.js (you should learn this from the Javascript tutorials)
-
Create a new folder. In this folder, run
npm init
and follow the instruction. You will get a node_modules folder and package.json file. Next, run the following command. Then you will see the updates in the package.json file.npm install --save @type/solid-auth-client npm install --save solid-auth-client npm install --save-dev webpack npm install --save-dev webpack-cli
-
Following the guidence, in package.json do:
... + "private": true, - "main": "index.js", ...
in dist/index.html, do:
<body> - <script src="./src/index.js"></script> + <script src="main.js"></script> </body>
Next, in the folder, run
npx webpack
, then you will see a tsconfig.josn appears.
NOW, you are ready to build your first SOLID App by following this.