Closed daisycrego closed 3 years ago
package.json
"scripts"->dev
/start
runs index.html
index.html
similar to https://github.com/daisycrego/react/blob/master/notedly/web/src/index.html
index.html
runs the React app, App.js
So do we need an express app? https://stackoverflow.com/questions/15718649/how-to-publish-a-website-made-by-node-js-to-github-pages
Take a look at this code: https://github.com/shamahoque/mern-skeleton
Here is a react template I wrote based on the JavaScript Everywhere textbook: https://github.com/daisycrego/react/tree/master/react/reactJS/reactTemplate
[ ] Refactor the builderbook code
/events
endpoint, updates the db with any new events/events
endpoint, updated the db with any new events [ ] Create an API endpoint, /sync-events
, to query the FUB /events
endpoint and update the database, then return a list of the updated events for the UI to display.
fetch
call to the FUB API directly from the click button on the UI. But, we won't have access to the database, so we really can't do all the work we need to there, yes better to make the /sync-events
endpoint.Used a mern skeleton from here, I could understand all of the code so that was a great sign, and it used all of the technologies I wanted to use: webpack, node.js, mongoose, babel, react, express, everything.
Connected to a mongodb atlas instance, under a new db collection, jbgadmin
, and created some schemas/models for the User
and Event
objects.
Working on an events/sync
endpoint to call the FUB API, retrieve events, compare those to the existing events, etc. Need to make some decisions about how I'll properly use offset
to retrieve all the events.
events/
in the FUB API.