Skip to content

Commit

Permalink
readme; models schema updated b00tc4mp#233
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonasveronn committed Nov 26, 2024
1 parent 9f1326b commit c6941cf
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 46 deletions.
39 changes: 33 additions & 6 deletions staff/jonas-veron/DanceApp/dat/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const user = new Schema(
type: String,
required: true,
minLength: 2,
maxLength: 20,
},
email: {
type: String,
Expand All @@ -25,7 +26,7 @@ const user = new Schema(
required: true,
unique: true,
minLength: 3,
maxLength: 30,
maxLength: 20,
},
password: {
type: String,
Expand All @@ -35,9 +36,15 @@ const user = new Schema(
role: {
type: String,
required: true,
enum: ["regular", "moderator"],
default: "regular",
enum: ["dancer", "organizer", "moderator"],
default: "dancer",
},
permission: {
type: String,
enum: ["read", "write"],
default: ["read"],
},
registeredAt: { type: Date, default: Date.now },
},
{ versionKey: false }
);
Expand All @@ -60,7 +67,7 @@ const comment = new Schema({
},
});

const post = new Schema(
const event = new Schema(
{
author: {
type: ObjectId,
Expand Down Expand Up @@ -92,8 +99,28 @@ const post = new Schema(
{ versionKey: false }
);

// const pointSchema = new Schema({
// type: {
// type: String,
// enum: ['Point'],
// required: true
// },
// coordinates: {
// type: [Number],
// required: true
// }
// });

// const event = new Schema({
// name: String,
// location: {
// type: pointSchema,
// required: true
// }
// });

const User = model("User", user);
const Post = model("Post", post);
const Event = model("Event", event);
const Comment = model("Comment", comment);

export { User, Post, Comment };
export { User, Event, Comment };
12 changes: 8 additions & 4 deletions staff/jonas-veron/DanceApp/dat/posts.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
passionfruit, https://media.giphy.com/media/31UGAZYhxmmqJRmEWs/giphy.gif?cid=790b7611fek2r5dh75ei09e2oj0iu7bt5cjd8cwngghke3tt&ep=v1_gifs_search&rid=giphy.gif&ct=g, my friends and i having a good meal, 2024-11-21T11:01:34.054Z
melonball, https://media.giphy.com/media/7AdWMjPg2hLXy/giphy.gif?cid=ecf05e47yixs5sqbj1u8v0f9yfxrlwh6xayzpcuuwzbuvpqm&ep=v1_gifs_search&rid=giphy.gif&ct=g, eating the best one ever, 2024-11-20T11:01:34.054Z
grapevine, https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExYTU3ZXBwNTczNWx5dXVkdWt3aWtxbnRwMHQxNXBkaWN3NnEyejExMiZlcD12MV9naWZzX3NlYXJjaCZjdD1n/DnG2KvpJ9UOyinX62K/giphy.gif, mmm... sensually eating my grapes, 2024-11-19T11:01:34.054Z
cranberry, https://media.giphy.com/media/zj891rqGfBndr5Pc3Y/giphy.gif?cid=790b76117gp7p37gme8oiypodiurpy9p19l609mcv7qo2lf8&ep=v1_gifs_search&rid=giphy.gif&ct=g, collecting my little ones from my garden, 2024-11-20T12:01:34.054Z
latemenda, https://media.giphy.com/media/l378khQxt68syiWJy/giphy.gif?cid=ecf05e47iw7wvqes9wvq6h14xe02ji5uy2sf1fxpewff3s4o&ep=v1_gifs_search&rid=giphy.gif&ct=g, "¡Gran noche de salsa y bachata en Girona! No te lo pierdas, clases gratuitas antes de la social.", 2024-11-25T18:00:00.000Z
liosalsabachata, https://media.giphy.com/media/xT8qBsOjMOcdeGJIU8/giphy.gif?cid=ecf05e47mt5pm32gmmbzt3hfuo4eq08r1a11nozgcpohzdw4&ep=v1_gifs_search&rid=giphy.gif&ct=g, "Clases intensivas de bachata sensual este fin de semana, con los mejores instructores.", 2024-11-24T10:30:00.000Z
esencia, https://media.giphy.com/media/3oriO0OEd9QIDdllqo/giphy.gif?cid=ecf05e47gx5iqscufrh16qcaxmkgs9oaoflo9hvtceg1p9gv&ep=v1_gifs_search&rid=giphy.gif&ct=g, "Social de bachata y salsa con música en vivo. ¡Te esperamos este viernes!", 2024-11-23T20:00:00.000Z
quechimba, https://media.giphy.com/media/l2JhLzv9c82oIKuF6/giphy.gif?cid=ecf05e47pyqypiq3vdscm3ybff89zz9ofj5exluz0wug0zse&ep=v1_gifs_search&rid=giphy.gif&ct=g, "Festival de baile urbano en Barcelona. Exhibiciones, talleres y mucha diversión.", 2024-11-22T15:00:00.000Z
latemenda, https://media.giphy.com/media/1rNWq6ey5D4hi/giphy.gif?cid=ecf05e47dqboebnbm1o9hdslx4tko6ym5huh6eaw7wwsk5l9&ep=v1_gifs_search&rid=giphy.gif&ct=g, "Competencia de salsa amateur. ¡Participa y gana premios increíbles!", 2024-11-21T19:00:00.000Z
liosalsabachata, https://media.giphy.com/media/3o6Zt481isNVuQI1l6/giphy.gif?cid=ecf05e47hg6hcc91c95kw0mpopum4ox5yyacm4it1dwzfhcz&ep=v1_gifs_search&rid=giphy.gif&ct=g, "Workshop de bachata lady style. ¡Empoderamiento y estilo en un solo lugar!", 2024-11-20T16:00:00.000Z
esencia, https://media.giphy.com/media/3o6Mbf8U5j8CA2SGic/giphy.gif?cid=ecf05e47yg1hmylf1cqmh2rl72m1do36mijv5dkc8q4i8pjx&ep=v1_gifs_search&rid=giphy.gif&ct=g, "Fiesta temática de salsa clásica, con DJ invitado y barra libre.", 2024-11-19T22:00:00.000Z
quechimba, https://media.giphy.com/media/1zK8wx9EObWYm/giphy.gif?cid=ecf05e47sd4f6bbtbgho85tpik14iwm5xfuz40w5pqfdcmzz&ep=v1_gifs_search&rid=giphy.gif&ct=g, "Maratón de bachata y rueda de casino en Tarragona. ¡A bailar sin parar!", 2024-11-18T18:00:00.000Z
51 changes: 26 additions & 25 deletions staff/jonas-veron/DanceApp/dat/users.csv
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
Pepito Grillo, [email protected], pepitogrillo, 123123123, regular
Peter Pan, [email protected], peterpan, 123123123, regular
Campa Nilla, [email protected], campanilla, 123123123, regular
Wendy Darling, [email protected], wendydarling, 123123123, regular
Coco Liso, [email protected], cocoliso, 123123123, moderator
Pine Apple, [email protected], pineapple, 123123123, regular
Water Melon, [email protected], watermelon, 123123123, regular
Straw Berry, [email protected], strawberry, 123123123, regular
Blue Berry, [email protected], blueberry, 123123123, regular
Black Berry, [email protected], blackberry, 123123123, moderator
Mango Tango, [email protected], mangotango, 123123123, regular
Cran Berry, [email protected], cranberry, 123123123, regular
Kiwi Fruit, [email protected], kiwifruit, 123123123, regular
Passion Fruit, [email protected], passionfruit, 123123123, moderator
Lime Light, [email protected], limelight, 123123123, regular
Cherry Pop, [email protected], cherrypop, 123123123, regular
Peach Cobb, [email protected], peachcobb, 123123123, regular
Grape Vine, [email protected], grapevine, 123123123, moderator
Pear Tree, [email protected], peartree, 123123123, regular
Coconut Love, [email protected], coconutlove, 123123123, regular
Banana Split, [email protected], bananasplit, 123123123, regular
Orange Peel, [email protected], orangepeel, 123123123, regular
Guava Sweet, [email protected], guavasweet, 123123123, regular
Melon Ball, [email protected], melonball, 123123123, regular
Berry Blast, [email protected], berryblast, 123123123, moderator
Ana Pérez, [email protected], anaperez, 123123123, bailarin
Juan Gómez, [email protected], juangomez, 123123123, organizador
Laura Martínez, [email protected], lauramartinez, 123123123, bailarin
Pedro López, [email protected], pedrolopez, 123123123, organizador
Sofía Torres, [email protected], sofiatorres, 123123123, bailarin
Carlos Ramírez, [email protected], carlosramirez, 123123123, organizador
Lucía Fernández, [email protected], luciafernandez, 123123123, bailarin
Luis García, [email protected], luisgarcia, 123123123, bailarin
Valeria Sánchez, [email protected], valeriasanchez, 123123123, bailarin
Diego Muñoz, [email protected], diegomunoz, 123123123, organizador
María González, [email protected], mariagonzalez, 123123123, bailarin
Pablo Navarro, [email protected], pablonavarro, 123123123, bailarin
Camila Vega, [email protected], camilavega, 123123123, organizador
Daniel Castro, [email protected], danielcastro, 123123123, bailarin
Martina Ruiz, [email protected], martinaruiz, 123123123, bailarin
Fernando León, [email protected], fernandoleon, 123123123, organizador
Elena Díaz, [email protected], elenadiaz, 123123123, bailarin
Javier Ortiz, [email protected], javierortiz, 123123123, bailarin
Paula Moreno, [email protected], paulamoreno, 123123123, bailarin
Adrián Núñez, [email protected], adriannunez, 123123123, organizador
Latemenda, [email protected], latemenda, 123123123, organizador
Liosalsabachata, [email protected], liosalsabachata, 123123123, organizador
Esencia, [email protected], esencia, 123123123, organizador
Quechimba, [email protected], quechimba, 123123123, organizador
Laliadabachatera, [email protected], laliadabachatera, 123123123, organizador

43 changes: 32 additions & 11 deletions staff/jonas-veron/DanceApp/doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

DanceApp is an app designed to connect dancers and dance event organizers in your area. Whether you want to find a place to enjoy the rhythm or promote your next dance event, DanceApp is your ideal platform.

![](https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExMWVud2RiaXF5eTZ5ejlobXRqZDZvYjF0ZWJuam40Nm1xMWZsNzYxciZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/U5Ivkja8l6jsgdxtCb/giphy.gif)
![](https://i.gifer.com/xz.gif)

## Functional

Expand All @@ -17,6 +17,12 @@ DanceApp is an app designed to connect dancers and dance event organizers in you

### Use Cases

For all users

- Access to an interactive map to locate nearby events in real time.
- Use of an advanced search engine to filter events by location, dance type, or date.
- Explore popular events highlighted on the platform.

Dancer

- Search and explore events.
Expand All @@ -30,7 +36,8 @@ Organizer
- Give "likes" to posts.
- Comment and participate in conversations.
- Share events with friends.
- Crear y administrar eventos.
- Create and manage events.
- Profile with your posts

### UXUI Design

Expand All @@ -54,34 +61,48 @@ Organizer

### Data Model

User
User:

- id (UUID)
- name (string)
- email (string)
- username (string)
- password (string)
- role (string): Role of the user (dancer | organizer | moderator)
- permission(string, enum: read | write)
- createdAt (Date)

Post
Event:

- id (UUID)
- author (User.id)
- image (string)
- text (string)
- date (Date)
- likes ([User.id])
- comments ([{
- id (UUID)
- author (User.id)
- text (string)
- date (Date)}])

Comment:

- id (UUID)
- author (User.id)
- text (string)
- date (Date)

Location:

- address (string): Event address.

Coordinates:

- latitude (number)
- longitude (number)

### Techs

- Frontend: React
- Frontend: React, HTML, CSS, JavaScript
- Backend: Node.js + Express
- Database: MongoDB
- Style: CSS for React Native (Styled Components and StyleSheet)
- Style: Tailwind CSS
- Authentication: JWT

### Test Coverage

0 comments on commit c6941cf

Please sign in to comment.