Code Monkey home page Code Monkey logo

mern-boilerplate's Introduction

MERN-boilerplate

This is a boilerplate project using the following technologies:

Requirements

npm install

Running

Make sure to add a config.js file in the config folder. See the example there for more details.

Production mode:

npm start

Development (Webpack dev server) mode:

npm run start:dev

mern-boilerplate's People

Contributors

arkon avatar keithweaver avatar krothenbaum avatar theghostyced 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mern-boilerplate's Issues

Issue in running this boilerplate in Production.

Hi Keith.

Thanks for the boilerplate. Saved me a lot of time but when I took it live I had an issue where if you browse to any of the pages except for the home page a white screen is returner.

app.get('*', function (req, res) { res.sendFile(path.resolve(__dirname, '../dist/index.html')); res.end(); });
If you remove the res.end() piece it will resolve the issue. I have updated my solution to be:
app.get('*', function (req, res) { res.sendFile(path.resolve(__dirname, '../dist/index.html'), (err) => { if(err){ console.log(err); } res.end() }); });

This is just a note for anyone else that is having the same issue.

I think the reason this happens is because whilst the server is busy processing the file that needs to be returned the res.end(); call cuts the response in the middle and nothing is returned.

IAM issue following DynamoDB ‘local’ tutorial

I'm working through your Using AWS DynamoDB with Node.js, and working with the master-w-dynamodb branch as instructed.

I'm successfully running DynamoDB locally, and have gotten as far as being ready to POST my first record. However, whenever I try to send a JSON object via Postman, I get the following response:

{
    "__type": "com.amazonaws.dynamodb.v20120810#MissingAuthenticationToken",
    "message": "Request must contain either a valid (registered) AWS access key ID or X.509 certificate."
}

I don't really understand why this is happening, as I've followed the foo ... bar example in the article for setting up local creds.

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.