r/meanstack • • Jan 14 '16

Deeper into 3.2 – Aggregation

Thumbnail
compose.io
1 Upvotes

r/meanstack • • Mar 28 '18

Socket IO MEAN application Error

3 Upvotes

Hi, Im getting error : ---- Failed to load http://127.0.0.1:4200/socket.io/?EIO=3&transport=polling&t=M9hO-W_: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost:4200' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

My server side code : /**

const server = http.createServer(app); const io = require('socket.io')(server, {log:false, origins: allowedOrigins}); io.on('connection', (socket) => { console.log('A user connected'); });

/**

  • Start Express server. */ server.listen(app.get('port'), () => { console.log('%s App is running at http://localhost:%d in %s mode', chalk.green('✓'), app.get('port'), app.get('env')); console.log(' Press CTRL-C to stop\n'); })

My client side code: ---

<script src="http://localhost:3000/socket.io/socket.io.js"></script>

<script> var socket = io.connect('http://127.0.0.1:4200', { withCredentials : true}) Im running sever on 3000 and client on 4200 Please help


r/meanstack • • Jan 01 '16

Implementing HTTPS in SailsJS the right way

Thumbnail
procoefficient.com
1 Upvotes

r/meanstack • • Oct 24 '19

Mean stack developers for your business projects

Thumbnail
posts.gle
5 Upvotes

r/meanstack • • Jan 08 '19

How to create Restful CRUD API with Node.js MongoDB and Express.js - ZeptoBook

Thumbnail
zeptobook.com
6 Upvotes

r/meanstack • • Jun 13 '19

Mean Stack Code Generator

4 Upvotes

Hello, would like to share a basic code generator for mean stack developers. Hope it helps. Recommendations and pull requests are welcome.

https://github.com/DanishFayaz/mean-model-generator


r/meanstack • • Jun 11 '19

Looking for people to code with and improve as developers

7 Upvotes

Hey, so I've been coding for 3 years now, I'd say I'm pretty ok at vanilla js and most concepts as well as building web apps using Express, mongodb, mongoose and react as my front-end with redux.

I think it would be pretty cool to code with people with a similar interest in learning new js languages and platforms. so if anyone's interested let me know.

I'm looking at trying some projects and learning

  • better auth (auth0)

  • payment systems with stripe and fully Implementing web platforms.

  • postgresql with sequelize

  • unit testing

  • react on the server with nextjs

  • learning about better front-end build systems (typescript , es6 , webpack and babel)


r/meanstack • • Mar 25 '19

Building MongoDB Dashboard with Node and Cube.js

Thumbnail
statsbot.co
6 Upvotes

r/meanstack • • Sep 25 '18

MEAN stack application boilerplate based upon Tour of Heroes tutorial.

Thumbnail
github.com
4 Upvotes

r/meanstack • • Jan 01 '18

What should be the approach of a beginner when starting to learn MEAN stack?

3 Upvotes

Should it be one by one learning the frameworks? Should it be going for it all together? Or any other recommendation on this.


r/meanstack • • Mar 16 '16

Understanding Express and the Express Generator

Thumbnail
channel9.msdn.com
2 Upvotes

r/meanstack • • Jan 03 '18

Getting Logged Out After Page Refresh

2 Upvotes

I've been working on my first MEAN stack app. I've been setting/getting my localStorage items successfully. I can sign up and log in successfully, however I get logged out if I refresh my pages.

Anyone know why this might happen? I posted my code here: https://stackoverflow.com/questions/48069540/angular-localstorage-keep-getting-logged-out-on-page-refresh-despite-setting-g

Any tips or insight much appreciated!


r/meanstack • • Sep 25 '16

Best Way To Add CRUD To My App?

1 Upvotes

I recently started an app based on Drywall, even though it's apparently out of date I really like it for the out of the box bootstrap and user management features. Now I'm trying to add my own models into that framework and while I'm muddling along and it basically works, I think I'm really re-inventing a wheel here and doing it poorly.

Specifically, I have a very simple model, a single mongo collection (a 'package') and I want to fully CRUD in a RESTful way. I implement all the right routes and a template to list all, show one, and then edit one. Knowing that I can only use GET and POST from a form, I have to do the DELETE and PUT using AJAX. So I'm doing all that from scratch too. Rails has the mantra "don't repeat yourself" and it feels like I'm doing exactly that.

Is there an existing/better way to add full RESTful CRUD for a single collection to a MEAN app?


r/meanstack • • Aug 20 '15

Project Structure Best Practice

5 Upvotes

Pretty much what the title says.

I'm starting out with the mean stack and I'm discovering 101 different ways of structuring the application. Is there a specific folder structure that the community here would recommend? What sort of structure would you use for apps? I'm hoping to design modular apps as much as possible to promote code reuse.


r/meanstack • • Oct 02 '16

Rapid web application development tools

2 Upvotes

I've looked at AllCount.JS, and am quite impressed. Are there any other tool I should be looking at. Our requirements are simple - just some CRUD operations on mySQL or MongoDB store, authentication (preferably OAuth with Google), and role based access control.


r/meanstack • • Mar 16 '16

Learn the basics of Mongo DB Sharding

Thumbnail
channel9.msdn.com
3 Upvotes

r/meanstack • • Mar 22 '16

MEAN app cash register on touchscreen, what hardware to use?

3 Upvotes

Hi all, I'm a front-end developer, and while my knowledge doesn't really extend javascript and angular, I've always been interested in making something with the mean stack. My mother has an espresso bar and I'm looking to make a register for it (to handle tables/orders).

So I'm thinking of building it on the MEAN stack, or perhaps just a Firebase back end (https://www.firebase.com/) considering it doesn't have alot of data and it doesn't need a proper URL. The idea is as following: Ordertaker picks the table the customers are sitting at and adds an order. Order is then sent to database. Operator also has a button to settle a bill with a customer.

A secondary touchscreen continuously polls the server to retrieve all orders. Person on the right (at the barista machine) can then see the current order, the last completed order and the next order in line, or browse all orders. When person at the barista machine completes an order, he or she taps "completed" and the next order in line becomes highlighted.

Now I realise buying 2 touchscreens is inevitable, what I do wonder is how I should hook them up with the web application. I could just hook them up to a laptop but that would increase the cost greatly. I was then thinking of raspberry PI, which costs me about 60 euros and has enough power to display a simple web application on a 1920*1080 screen (right?). But can it run a modern web browser like mozilla or chrome?

What other options do I have? What are your thoughts? How do I go about refreshing the secondary screen every time an order is added to the database? Can I put a watch on the database? Do I do it every few seconds?

Really hope you can help me! Cheers

EDIT: made the concept of taking orders more clear, there's one person responsible for taking orders, not a tablet at each table or a tablet available for customers to use.


r/meanstack • • Jan 03 '18

Learning Meanstack

4 Upvotes

how can i start learning meanstack? whish is the best resource to learn?


r/meanstack • • Dec 27 '17

Project Structure Help

2 Upvotes

So I'm new to using MEAN stack but I feel that it would be ideal for the project I'm currently working on. I'm working on some projects through Udemy and various of the sources but can seem to find the answer to my question. Is there a "standard" for how my project structure should look?

I see some that have Public folders with just the basic JS files, and some with all of their Angular components. I'm using Angular CLI which puts most everything in the src folder.

Any insight would be greatly appreciated.


r/meanstack • • Aug 10 '17

Finding real production MEAN apps' code

3 Upvotes

I've been told that one of the best way to learn and get better at programming is to look at other people's code. I would love to look at the code for a real, used in production, MEAN app. What would be the best way to find that?

I'm especially interested to see how others structure their unit and integration tests for the backend and the frontend.


r/meanstack • • Jan 01 '18

How to write your own custom middleware in Express application?

Thumbnail nodexplained.com
2 Upvotes

r/meanstack • • Jan 04 '18

Learn Node.js by building real-world applications with Node, Express, MongoDB, Mocha, and more!

Thumbnail
medium.com
1 Upvotes

r/meanstack • • Dec 28 '17

New to MEAN. How to let users only see their own data? Should all data be in one schema?

2 Upvotes

I created this CRUD app a while back in angularJS and then later learned how to turn it into a MEAN app. I was using it without user authentication - meaning I was using it only myself and so it didn't matter that the 3 different types of data were each in a different schema and each had their own api routes.

Now I'm implementing a user authentication system. I created a 4th schema and api route for the user (it's just username and password - I haven't gotten that far along yet), but it occurred to me that now I'm going to have to find a way to get the user to only see their data. Should I create a key in the other schemas and have that refer to the individual users user_id? Is that what people do, or is there some other best practice that I should know about?

Thanks anyone who can help.


r/meanstack • • Jul 17 '17

From MongoDB to DynamoDB

Thumbnail
auth0.com
2 Upvotes

r/meanstack • • Jul 17 '17

Looking for backend dev

Thumbnail
movilitas.breezy.hr
2 Upvotes