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/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zed A. Shaw 4f374d7a81 First successful fully automated test is working and now I can breathe better. 3 months ago
lib First successful fully automated test is working and now I can breathe better. 3 months ago
services Basic auth from an email working, but stil need to figure out how to make the session stick. 3 months ago
src First successful fully automated test is working and now I can breathe better. 3 months ago
static Moved the login stuff to its own page. 3 months ago
tests/ui First successful fully automated test is working and now I can breathe better. 3 months ago
.gitignore Now finally talking to RethinkDB but man what a pain. 3 months ago
LICENSE Mostly copy the bulma-templates over to work with. 3 months ago
Makefile Easier to use vim when you have a Makefile. 3 months ago
README.md In process on the full first UI test. 3 months ago
SAPPER.md Keep the sapper docs but bring back the original README.md. 3 months ago
jest.config.js Switch from cypress to jest and get 1 test working with puppeteer. 3 months ago
package-lock.json Dropped rethinkdb and switch to arangodb. 3 months ago
package.json In process on the full first UI test. 3 months ago
rollup.config.js Forgot the files from sapper. 3 months ago

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.