pmuens / discuss Goto Github PK
View Code? Open in Web Editor NEW100% serverless forum software (Technologies used: Serverless, DynamoDB, ES2015, React, Redux, Node.js, GraphQL)
100% serverless forum software (Technologies used: Serverless, DynamoDB, ES2015, React, Redux, Node.js, GraphQL)
A setTitle
function should be implemented so that each page has it's own title.
If you want to add a new post with new lines (\n) in the body the post will not be created (or updated).
The demo video is down:
Is there a demo available or perhaps a showcase?
Introduce topics (should be pre-defined) so that users need to define what topic their post belongs to.
Hey Phillip -
looks very cool and i'd like to contribute, but having issues deploying. can you help? had to rearrange some of your steps to make progress...
Installed latest Serverless
Git cloned Discuss into new folder
(1) cd into the root of the project. Run npm install to install all necessary NPM dependencies for the Serverless project.
(2) Ran 'serverless project init' to initialize the Serverless project.
at this point, i get this warning: "Serverless: - Serverless: WARNING: This variable is not defined: authTokenSecret" perhaps the step below needs to happen first?
(3) Add the following environment variables to the JSON array of the corresponding file in _meta/variables.
{
...
"authTokenSecret": "STRONGVALUE"
}
what file am i adding this to? i see three: s-variables-common.json, s-variables-projectname.json, and s-variables-projectname-region.json.
(4) Run cd backend/lib && npm install && cd ../../ to install the NPM dependencies for the GraphQL backend.
(5) Run serverless endpoint deploy --all to deploy the CORS enabled endpoints.
When i run this, i get about fifty lines of warnings about these three variables:
Serverless: WARNING: This variable is not defined: stage Serverless: WARNING: This variable is not defined: region Serverless: WARNING: This variable is not defined: authTokenSecret
thanks!
adam
Might be more promising since Cloudflare workers (V8 isolates) are cheaper than AWS lambdas (microVMs), although I wasn't apple to get the auth/commenting working.
Add pagination for posts and comments.
What about if we add an edit button for the inline editing?
It's sometimes to dangerous, if you want to copy something or maybe click by accident. I think it's also better for the UX, if people see that there is a an edit button.
What do you think @pmuens ?
Would add a button Edit. If you click the button the content gets an textarea. Basically the same behaviour but only with a click on edit.
When I run:
4. Run `npm run build` to build the client
5. Run `serverless client deploy` to host the frontend with the help of an S3 bucket
How do I provide a unique name? Which file controls the S3 bucket name?
Need to downgrade using npm i -g serverless@^0.5.6
to run serverless project init
among other commands.
Although I still ran into some issue in using the stack cause lambda won't accept the node runtime as it's 'outdated'
Just an overview of the profile of a user with all his posts and stuff like that.
Comments will remain if a user deletes a post. A cleanup event should be implemented which removes orphaned comments.
The validation is not working correctly. May be due to wrong Promise usage.
When running npm start
at the bottom of the log, I see following errors.
[601] ./app/js/components/users/sign-in.jsx 5.16 kB {1} [built]
ERROR in ./app/js/components/posts/PostDetail.jsx
Module not found: Error: Cannot resolve module 'react-textarea-autosize' in /Users/barton/projects/Serverless/discuss/client/src/app/js/components/posts
@ ./app/js/components/posts/PostDetail.jsx 37:29-63
ERROR in ./app/js/components/comments/Comment.jsx
Module not found: Error: Cannot resolve module 'react-textarea-autosize' in /Users/barton/projects/Serverless/discuss/client/src/app/js/components/comments
@ ./app/js/components/comments/Comment.jsx 33:29-63
webpack: bundle is now VALID.
Subsequently if I continue, when I try to hit http://localhost:8080
in the console log
I see:
/app/js/components/posts/PostDetail.jsx
Module not found: Error: Cannot resolve module 'react-textarea-autosize' in /Users/barton/projects/Serverless/discuss/client/src/app/js/components/posts
resolve module react-textarea-autosize in /Users/barton/projects/Serverless/discuss/client/src/app/js/components/posts
looking for modules in /Users/barton/projects/Serverless/discuss/client/src/node_modules
/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize doesn't exist (module as directory)
resolve 'file' react-textarea-autosize in /Users/barton/projects/Serverless/discuss/client/src/node_modules
resolve file
/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize doesn't exist
/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.webpack.js doesn't exist
/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.web.js doesn't exist
/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.js doesn't exist
/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.jsx doesn't exist
looking for modules in /Users/barton/projects/Serverless/discuss/node_modules
/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize doesn't exist (module as directory)
resolve 'file' react-textarea-autosize in /Users/barton/projects/Serverless/discuss/node_modules
resolve file
/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize doesn't exist
/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.webpack.js doesn't exist
/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.web.js doesn't exist
/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.js doesn't exist
/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.jsx doesn't exist
[/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize]
[/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize]
[/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.webpack.js]
[/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.web.js]
[/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.js]
[/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.jsx]
[/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize]
[/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize]
[/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.webpack.js]
[/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.web.js]
[/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.js]
[/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.jsx]
@ ./app/js/components/posts/PostDetail.jsx 37:29-63errors @ app.js:641
app.js:641 ./app/js/components/comments/Comment.jsx
Module not found: Error: Cannot resolve module 'react-textarea-autosize' in /Users/barton/projects/Serverless/discuss/client/src/app/js/components/comments
resolve module react-textarea-autosize in /Users/barton/projects/Serverless/discuss/client/src/app/js/components/comments
looking for modules in /Users/barton/projects/Serverless/discuss/client/src/node_modules
resolve 'file' react-textarea-autosize in /Users/barton/projects/Serverless/discuss/client/src/node_modules
resolve file
/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize doesn't exist
/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.webpack.js doesn't exist
/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.web.js doesn't exist
/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.js doesn't exist
/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.jsx doesn't exist
/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize doesn't exist (module as directory)
looking for modules in /Users/barton/projects/Serverless/discuss/node_modules
resolve 'file' react-textarea-autosize in /Users/barton/projects/Serverless/discuss/node_modules
resolve file
/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize doesn't exist
/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.webpack.js doesn't exist
/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.web.js doesn't exist
/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.js doesn't exist
/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.jsx doesn't exist
/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize doesn't exist (module as directory)
[/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize]
[/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.webpack.js]
[/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.web.js]
[/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.js]
[/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize.jsx]
[/Users/barton/projects/Serverless/discuss/client/src/node_modules/react-textarea-autosize]
[/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize]
[/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.webpack.js]
[/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.web.js]
[/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.js]
[/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize.jsx]
[/Users/barton/projects/Serverless/discuss/node_modules/react-textarea-autosize]
@ ./app/js/components/comments/Comment.jsx 33:29-63errors @ app.js:641
This is a good implementation: https://github.com/jimpick/lambda-comments/blob/master/packages/frontend/src/ui/comment.js
A profile settings page, that the user can update his email, password and some personal information.
This way the most recently discussed post will always be on top.
Add the users Gravatar on the left hand side of the post / comment.
Add a filter which can be used to search through all posts (filter and search should work together)
Add a barrier so that things such as 2 months ago
are translated to the correct date (as it's easier to see what date it was in particular).
Right now two users with the same username and E-Mail can co-exists. This should not be possible!
"serverless project init" the project parameter is deprecated.
Add loading animation when data gets loaded from the backend.
Split up current components into smaller chunks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.