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

Mantra Discuss app #57

Open
vonwao opened this issue Feb 3, 2016 · 11 comments
Open

Mantra Discuss app #57

vonwao opened this issue Feb 3, 2016 · 11 comments

Comments

@vonwao
Copy link

vonwao commented Feb 3, 2016

Let's create an an open source app we can actually use, with mantra. This would be better than using Discourse: we discuss, learn, and do QA testing all at the same time.

My idea is not so much a reference app, but an app we can use for experimentation. And importantly something that we keep in a working state.

I'd be willing to set it up on modulus and host it out of my pocket at least for a few months.

@mquandalle
Copy link

I would also love Wekan to be a good example of an open-source application following Mantra, but it’s maybe a bit early stage for me, I would rather wait for @arunoda’s open-source application that should be released soon enough.

@bright-sea
Copy link

It is so exciting to hear @mquandalle said Wekan will be following Mantra. Looking forward to this.

@arunoda
Copy link
Collaborator

arunoda commented Feb 4, 2016

@mquandalle I agree it's early stage for Wekan. As @vonwao mentioned this will be something like Telescope.

It's hard to compete with us Discourse, but I guess we could do something and it'll be a fun experience.
Since, sacha is not fully working on Telescope, this would be a good project. (But, we need to be simple).

@shekar73
Copy link

shekar73 commented Feb 5, 2016

+1 @mquandalle it would be awesome to see Wekan follow Mantra. Looking forward to it.

@vonwao
Copy link
Author

vonwao commented Feb 6, 2016

I have set up a repository, and started adding some files (added scss styles from discourse, but couldn't figure out some scss compiler errors, so far)

Also added an issue to discuss most important features. You can join the conversation:

https://github.com/vonwao/mantra-dialogue

@arunoda
Copy link
Collaborator

arunoda commented Feb 7, 2016

@vonwao Awesome.
Would you like to add this project to the mantrajs org?

@tomitrescak
Copy link

@arunoda not sure if you are interested but I am maintaining the Meteor Webpack version of Mantra at https://github.com/tomitrescak/Meteor-Boilerplate-Webpack-Mantra-Typescript

It also contains the Typescript version of Mantra along with all typings (fully at 0.2.0).

I have asked Exon (creator of the Meteor Webpack) to include mantra in his kickstarter projects, but up until he does so (hopefully he decides positively), this is the only source to get started with Mantra, Meteor Webpack and/or Typescript.

@vonwao
Copy link
Author

vonwao commented Feb 7, 2016

Yes @arunoda. I tried to transfer repo to mantrajs but it says I don't have admin rights. What's the correct procedure to transfer, also so I retain rights to commit to repo?

@vonwao
Copy link
Author

vonwao commented Feb 8, 2016

@tomitrescak I don't think webpack and typescript are relevant to to this issue, but since you replied here, I have a comment. Webpack is very useful for the "hot module reload" ability.

Typescript looks nice too, static type checking would be nice, but I don't think I would use it now. For example, below, I don't know if there's a way in TypeScript to annotate (or cast) the type of {post} as IPosts. If there is a way, it would very nice because Webstorm (maybe atom too) would provide autocomplete.

const Post = ({post}) => (
  <div>
    {post.saving ? <p>Saving...</p> : null}
    <h2>{post.title}</h2>
... 

There are other examples in mantra, using destructuring, where adding types doesn't seem very practical. It's a nice idea otherwise.

@tomitrescak
Copy link

Hot code reload is one of the main reasons I am using webpack, apart from the native support of modules.

Concerning typescript, of course it is possible. Check out the comment_list component below, which is part of the boilerplate:

import React from 'react';
import CreateComment from '../containers/create_comment';

import { IComments } from "../../../../common/collections";

interface IProps {
  comments?: IComments[];
  postId: string;
}

const CommentList = ({comments, postId}: IProps) => (
  <div className="comments">
    <div>
      <CreateComment postId={postId}/>
    </div>
    <div className="comment-list">
      {comments.length === 0 ? <p>No Comments Yet!</p> : null}
      {comments.map((comment: IComments) => (
        <div key={comment._id} className="comment">
          <b>{comment.author}:</b> {comment.text}
          {comment.saving ? '...' : null}
        </div>
      ))}
    </div>
  </div>
);

export default CommentList;

@arunoda
Copy link
Collaborator

arunoda commented Feb 9, 2016

@vonwao I added you to mantrajs org. I hope now we can transfer the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants