This is the code I'm writing in public as I build the learnjsthehardway.com website to host my new course format. https://learnjsthehardway.com/
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
zedshaw 4d586b1f67 Merge branch '20200324-model-modules' of zedshaw/learnjsthehardway into master před 1 dnem
db Implemented JSON, RSS, and Atom feeds. před 1 dnem
designs Fix up the landing page by just using SVG. před 4 týdny
lib Implemented JSON, RSS, and Atom feeds. před 1 dnem
migrations User needs unique on email. před 1 týdnem
notes Notes on the rational and design of the build system for my future self. před 2 dny
protected/media These are currently samples being generated by the build tool, but soon they will be moved into a private repo. před 2 dny
sass A bit of spacing and such for the design. před 3 týdny
services Small fix to the email templates before deploy. před 2 týdny
src Implemented JSON, RSS, and Atom feeds. před 1 dnem
static Implemented JSON, RSS, and Atom feeds. před 1 dnem
tests Reworking the tests so they do a forced shutdown of knex pools. před 1 dnem
tools Useful little scripts for dealing with postgres's terrible connection management. před 1 dnem
.gitattributes Trying to fix line endings automatically. před 2 týdny
.gitignore An absolute bunch of trash but it works. I now have to figure out how to rip out gulp and just write a better generator. před 1 týdnem
LICENSE Mostly copy the bulma-templates over to work with. před 2 měsíci
Makefile Easier to use vim when you have a Makefile. před 1 měsícem
README.md An absolute bunch of trash but it works. I now have to figure out how to rip out gulp and just write a better generator. před 1 týdnem
ecosystem.config.js Ohhhh, I accidentally told redis to reboot. WAT. před 1 měsícem
generator.js Implemented JSON, RSS, and Atom feeds. před 1 dnem
gulpfile.js More slimming the gulpfile. před 2 dny
jest.config.js Make sure same-origin credentials are used in all fetch, then a test to confirm one api will block. před 4 týdny
knexfile.js Basic structure of the modules part of the system, but no real data in it yet. před 1 týdnem
package-lock.json Implemented JSON, RSS, and Atom feeds. před 1 dnem
package.json Implemented JSON, RSS, and Atom feeds. před 1 dnem
rollup.config.js Got the first SCSS and Pug integration going, now rewriting all the things. před 1 měsícem

README.md

Learn JavaScript The Hard Way

This is the project you can follow from the live streams as I develop the website for the course. I initially started this using the awesome Bulma Templates at https://github.com/BulmaTemplates/bulma-templates and will place the code after each live session here.

Journal

Thu Feb 6 10:58:22 EST 2020

Managed to get the CORS worked out with mailtrain.  Wow CORS is garbage.
Ditched cors and mailtrain widget.  No point really.

Sun Feb 9 09:58:20 EST 2020

Setup initial Sapper configuration to start working on the site for real.

Tue Feb 11 06:00:02 EST 2020

Sapper is working good.
Configured a monochromne bulma theme.
Got testing to work with jest and puppeteer.

Wed Feb 12 07:15:02 EST 2020

Figured out session work sort of in sapper, but I need to go through the RealWorld code to confirm.
I can setup a cookie-session, and that is attached to req.session.
Then I add a {session:} to the sapper middleware that sets this based on the req.session.views setting.
Kind of convoluted so I suspect I'll find out more in the RealWorld app, but it does work.
I also need to review the reactive $ variables in svelte because I forgot about that.

Mon Feb 17 12:32:58 EST 2020

I have a basic auth working off rethinkdb and kue, but I....don't know how to set it in a session?
Rethink has some bad design decisions so I most likely will jump off it soon.
Got the logins working.  Sessions weren't saving because I set response/status before setting the session.

Tue Feb 18 07:21:16 EST 2020

Adding in PM2 and testing and locking this down tight before working on the UI more.
Removed RethinkDB and went back to ArangoDB.  I like it, but it's also just easy to manage.

Wed Feb 19 21:15:22 EST 2020

Found out to reconcile the commonjs vs. es6 modules.  I'll eventually have to move that out.
Added pino logging and got the web logs coming through.  It's very busy though.
Got a full test case for the one UI I have working, and it runs automatically.

Sat Feb 22 13:40:30 EST 2020

Cleaned up the design and slimmed it down significantly using Spectre.css.
Got logins mostly working, tested, and added registration.
Took the blogging example from Sapper and modified it slightly.  Needs more.

Mon Feb 24 11:32:09 EST 2020

Managed to clean up the design, code, and many other things, then get logins/registration mostly working.
Imported the Spectre.css directly into this project so I can rapidly work on modifying it.

Wed Mar 4 16:37:50 EST 2020

Quite a lot of the design is refined and the development process is much smoother.
Close to throwing it on the internet and seeing how it goes.

Important Docs

These are links to docs I constantly have to look up: