Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Seed Project #1

Open
gedanziger opened this issue Apr 23, 2019 · 0 comments
Open

Create Seed Project #1

gedanziger opened this issue Apr 23, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@gedanziger
Copy link
Member

Initialize a nodejs express application that has instructions + readme to run with pm2, with a mysql db using sequelize.

Add the following models (only support the source:

Event - An event is a some meetup or other event people can attend

  • id (uuid) - primary key
  • created (datetime) - set when the object is created in our db
  • source (string - enum) [MEETUP, EVENTBRITE] - this is the source of the event. Paired with the sourceId, it will allow fetching of the event through the API later.
  • name (string) - this is the name of the event
  • description (string - blob) - this is a description of the event
  • url (string) - this is a link to the event
  • photoUrl (string) - this is a URL of a thumbnail for the event
  • sourceId (string) - this is the ID for this object on the foreign service
  • time (datetime) - this is the datetime of the start of the event. This will be pulled from the API
  • timeLocal (string) - this is the locally formatted time of the start of the event. It will be generated by our service
  • country (string) - 2 letter country code for the country hosting the event
  • city (string) - city where the event his hosted
  • lat (number, best format for latitude in sequelize) - latitude of the event
  • lon (number, best format for longitude in sequelize) - longitude of the event

Group - a group is an online group that organizes an event

  • id (uuid) - primary key
  • created (datetime) - set when the object is created in our DB
  • source (string - enum) [MEETUP, EVENTBRITE] - this is the source of the group. Paired with the sourceId, it will allow fetching of the group through the API later.
  • name (string) - this is the name of the group
  • url (string) - this is a link to the group
  • photoUrl (string) - this is a thumbnail for the group's photo
  • sourceId (string) - this is the ID of the group object on the third party site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant