Open reactivepixel opened 5 years ago
const eventData = {
event: {
id: '',
title: '',
description: '',
role_assignments: [{
id: '',
role: {Role},
contractor_event_state: {
contractor: {Contractor},
confirmation_state: {EventConfirmationState}
}
}],
assigned_coordinators: [Coordinator],
created_by: {User},
start_time: '',
expected_duration: '',
created_on: '',
updated_on: '',
event_confirmation_state: [EventState],
auto_notifications: ['onChange', 'onCancel', 'on'],
venue: {
id: '',
name: '',
address: '',
address2: '',
zip: '',
city: '',
state: '',
map_url: '',
timezone_title: '',
}
},
}
Using Luxon for DateTime management - https://moment.github.io/luxon/
Looking into GraphQL for the interface between React and MariaDB. Apollo 2 seems to be a standard server to get off the ground with. - https://www.apollographql.com/docs/apollo-server/essentials/data.html
GraphQL w/ Sequelize, express, and apollo
Implemented and refactored GraphQL w/ Sequelize, express, and apollo to include Events and Venues base info.
Status: Reading from the Database via the ORM, Sequelize, then abstracting through GraphQL endpoint thanks to Apollo's enhancement onto the Express server so that the Client side, React, can use GraphQL to access the Specified Scheme and populate the interface's state...
Phew, that was a lot to say, and even more to do.
In summary: The Client Side is reading from the DB and all layers in between have been established. Not using MVC, but rather implementing a State-Action-Mode (SAM) or some other State inspired system. Not sure what the exact name if it would be, as I am kinda stitching my own pieces together.
I'm using
Maybe I'll call it SWAGMEN or maybe GERMANS and drop the Webpack reference.
Some to do list
User Story #3