A progressive Node.js framework for building efficient and scalable server-side applications.
Make sure you have the following installed:
Clone the repository to your local machine:
git clone hhttps://github.com/harwarl/hospyta.git
cd hospyta
Install the project dependencies using Yarn:
yarn install
Make sure you have a MongoDB instance running and accessible. The default configuration assumes MongoDB is running locally on port 27017.
cd .env
yarn start:dev
The User entity represents a user in the system.
_id: ObjectId - Unique identifier for the user. firstName: string - User's first name. lastName: string - User's last name. username: string - Unique username for the user. password: string - Hashed password for authentication. email: string - Unique email address for the user. createdAt: timestamp - Date and time when the user was created. updatedAt: timestamp - Date and time when the user was last updated. bio: string - A short biography about the user. profilePic: string - URL to the user's profile picture. posts: [Post] - List of posts authored by the user. favourites: [Post] - List of posts favorited by the user. dislikes: [Post] - List of posts disliked by the user. 2. Post
The Post entity represents a post created by a user.
_id: ObjectId - Unique identifier for the post. slug: string - Unique slug for the post. title: string - Title of the post. content: string - Content of the post. categories: [string] - List of categories associated with the post. likes: number - Number of likes on the post. dislikes: number - Number of dislikes on the post. views: number - Number of views of the post. createdAt: timestamp - Date and time when the post was created. updatedAt: timestamp - Date and time when the post was last updated. author: User - The user who authored the post. authorId: string - The ID of the user who authored the post. 3. Comment
The Comment entity represents a comment made on a post.
_id: ObjectId - Unique identifier for the comment. postSlug: string - The slug of the post the comment belongs to. userId: string - ID of the user who made the comment. text: string - Content of the comment. replies: [Reply] - List of replies to the comment. createdAt: timestamp - Date and time when the comment was created. updatedAt: timestamp - Date and time when the comment was last updated. 4. Reply
The Reply entity represents a reply to a comment.
_id: ObjectId - Unique identifier for the reply. commentId: string - ID of the comment being replied to. userId: string - ID of the user who made the reply. text: string - Content of the reply. createdAt: timestamp - Date and time when the reply was created. updatedAt: timestamp - Date and time when the reply was last updated.
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.