reactivepixel / Resonate

0 stars 0 forks source link

MVC #9

Open reactivepixel opened 5 years ago

reactivepixel commented 5 years ago

User Story #3

reactivepixel commented 5 years ago

Events

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: '',
        }
    },   
}
reactivepixel commented 5 years ago

Using Luxon for DateTime management - https://moment.github.io/luxon/

reactivepixel commented 5 years ago

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

reactivepixel commented 5 years ago

GraphQL w/ Sequelize, express, and apollo

https://medium.com/infocentric/setup-a-graphql-api-with-apollo-2-0-sequelize-and-express-js-608d1365d776

reactivepixel commented 5 years ago

Implemented and refactored GraphQL w/ Sequelize, express, and apollo to include Events and Venues base info.

reactivepixel commented 5 years ago

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.

swagmen

swagmen

reactivepixel commented 5 years ago

Some to do list