Giter Site home page Giter Site logo

shamahoque / mern-social Goto Github PK

View Code? Open in Web Editor NEW
703.0 18.0 238.0 1.77 MB

A MERN stack based social media application [Full-Stack React Projects]

Home Page: http://social2.mernbook.com/

License: MIT License

JavaScript 100.00%
reactjs nodejs expressjs mongodb mern-stack mern full-stack web-application social-media

mern-social's People

Contributors

pratikv avatar shamahoque avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mern-social's Issues

H10 error on heroku

The app is deploying well on heroku but but there is H10 error when I open it ...can you help please

2019-11-16T22:18:03.301884+00:00 heroku[web.1]: Process exited with status 1
2019-11-16T22:18:08.428625+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=app-quickinhel.herokuapp.com request_id=13864623-07bb-4288-a02f-bac9ad87cc25 fwd="84.248.64.227" dyno= connect= service= status=503 bytes= protocol=https
2019-11-16T22:18:11.753455+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=app-quickinhel.herokuapp.com request_id=b19962f1-f078-49d2-91cb-5447d78486d0 fwd="84.248.64.227" dyno= connect= service= status=503 bytes=
protocol=https

Heroku

Hi Shamahoque,

I'm having a huge amount of trouble deploying my version of this to Heroku. Have you tried this? How would you do this?

Adding a scroll in Who to follow

In the who to follow section. If the number of users increases the page size is increasing. I think it's not the correct form to display.
Why don't we have a Div and scrolling available? and also let us add a searching a profile on the site. So the users can search for the other users.

Mern-SOcial

Hello i was trying to run your app but keep getting this

**nodemon [nodemon] 2.0.12 [nodemon] to restart at any time, enter rs[nodemon] watching path(s): server/**/* [nodemon] watching extensions: js,mjs,json [nodemon] startingwebpack --mode=development --config webpack.config.server.js && node ./dist/server.generated.js`
Hash: 5d5900cee00bd3b1a3f9
Version: webpack 4.42.1
Time: 2728ms
Built at: 09/14/2021 3:14:47 PM
Asset Size Chunks Chunk Names
08179a3b58e30f3c8c4fed34a9a3e2f8.jpg 790 KiB [emitted]
b5e188c92802e96faa6f2b04d236ebb2.png 8.27 KiB [emitted]
server.generated.js 284 KiB main [emitted] main
Entrypoint main = server.generated.js
[0] multi ./server/server.js 28 bytes {main} [built]
[./client/MainRouter.js] 2.06 KiB {main} [built]
[./client/theme.js] 1.38 KiB {main} [built]
[./config/config.js] 1.23 KiB {main} [built]
[./node_modules/webpack/buildin/harmony-module.js] (webpack)/buildin/harmony-module.js 573 bytes {main} [built]
[./server/devBundle.js] 1.46 KiB {main} [built]
[./server/express.js] 3.29 KiB {main} [built]
[./server/routes/auth.routes.js] 1.15 KiB {main} [built]
[./server/routes/post.routes.js] 1.98 KiB {main} [built]
[./server/routes/user.routes.js] 1.9 KiB {main} [built]
[./server/server.js] 689 bytes {main} [built]
[./template.js] 1.64 KiB {main} [built]
[body-parser] external "body-parser" 42 bytes {main} [built]
[compression] external "compression" 42 bytes {main} [built]
[mongoose] external "mongoose" 42 bytes {main} [built]
+ 94 hidden modules

ERROR in ./server/express.js
Module not found: Error: Can't resolve '@material-ui/styles' in '/Users/bsoft/Documents/Practice/mern-social/server'
@ ./server/express.js 26:0-71 52:21-38 57:38-51
@ ./server/server.js
@ multi ./server/server.js
[nodemon] app crashed - waiting for file changes before starting...
`**

Are you creating a second edition of the book?!

I really like the Packt MERN book, and it looks like you're updating the sample projects and creating new ones. I've looked on Packt's website and I haven't seen any announcement of a future title (or second edition). What are the plans for the book? Are you going to use all new sample projects and/or update the 1st edition projects? I like how you use a single project for both the client and server. Create-react-app is quite popular right now, but I prefer your method of setting up a MERN project. Is there a release date planned for the book?

Thanks!

Empty response

After I installed all the packages and did npm run development , http://localhost:3000 displays an empty response.

On the log it says compiled successfully and is running on port 3000 but it says empty response?

i mean just read it

there's a lot of good things you have going on but you should add an option to update posts i think then you'd have the complete package and maybe an authentication for the email you used

Cannot read property 'markup' of undefined

I am getting below error when I run the npm run development. The code compiles successfully.
Below error is thrown on browser at localhost:3000

TypeError: Cannot read property 'markup' of undefined
at _default (webpack:///./template.js?:14:21)

at eval (webpack:///./server/express.js?:93:47)
at Layer.handle [as handle_request] (E:\Project\MERN_CONCORD\node_modules\express\lib\router\layer.js:95:5)
at next (E:\Project\MERN_CONCORD\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (E:\Project\MERN_CONCORD\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (E:\Project\MERN_CONCORD\node_modules\express\lib\router\layer.js:95:5)
at E:\Project\MERN_CONCORD\node_modules\express\lib\router\index.js:281:22
at Function.process_params (E:\Project\MERN_CONCORD\node_modules\express\lib\router\index.js:335:12)
at next (E:\Project\MERN_CONCORD\node_modules\express\lib\router\index.js:275:10)
at Layer.handle [as handle_request] (E:\Project\MERN_CONCORD\node_modules\express\lib\router\layer.js:91:12)
at trim_prefix (E:\Project\MERN_CONCORD\node_modules\express\lib\router\index.js:317:13)
at E:\Project\MERN_CONCORD\node_modules\express\lib\router\index.js:284:7
at Function.process_params (E:\Project\MERN_CONCORD\node_modules\express\lib\router\index.js:335:12)
at next (E:\Project\MERN_CONCORD\node_modules\express\lib\router\index.js:275:10)
at E:\Project\MERN_CONCORD\node_modules\express\lib\router\index.js:635:15
at next (E:\Project\MERN_CONCORD\node_modules\express\lib\router\index.js:260:14)

Can not run in production mode

after running npm run start page is loaded without styling

refreshing page quickly flashes correct page (server rendered??) then goes back to no styling.

app crashing - ReferenceError: mongoUri is not defined

Clone this repository
Open command line in the cloned folder,
To install dependencies, run npm install
To run the application for development, run npm run development
Open localhost:3000 in the browser

After following your instruction as above - I am getting "app crashed" and the errors seems to be about "ReferenceError: mongoUri is not defined
at NativeConnection.eval (webpack:///./server/server.js?:21:55)
at NativeConnection.emit (events.js:182:13)
"

Npm run build

When I run that in a terminal to build it, it goes through the process but I can't find the built solution.

How to get in touch regarding a security concern

Hey there!

I belong to an open source security research community, and a member (@ibarrionuevo) has found an issue, but doesn’t know the best way to disclose it.

If not a hassle, might you kindly add a SECURITY.md file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.

Thank you for your consideration, and I look forward to hearing from you!

(cc @huntr-helper)

Cannot find module 'webpack'

I just deployed the project to heroku and i'm getting the above error. What do I need to configure the project to run on production environment?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.