Coder Social home page Coder Social logo

martijnboland / vsreact Goto Github PK

View Code? Open in Web Editor NEW
81.0 12.0 35.0 71 KB

React/MobX TodoMVC app with ASP.NET Web Api backend, developed with Visual Studio

Home Page: http://blogs.taiga.nl/martijn/2015/12/10/develop-reactjs-asp-net-web-api-apps-in-visual-studio-2015/

License: MIT License

C# 34.68% ASP 0.40% JavaScript 9.28% HTML 0.67% TypeScript 54.98%

vsreact's Introduction

VSReact

React TodoMVC app with ASP.NET Web Api backend, developed with Visual Studio.

The ReactJS frontend app originated from the Redux Devtools TodoMVC example, but has been rewritten with TypeScript and MobX. The original ES2015/Redux version can still be found at a new repo.

The ASP.NET Web Api backend app is a slightly modified version of https://github.com/mforman/todo-backend-webapi

Thanks to the original authors for the examples.

Prerequisites

Usage

Clone the example solution, open the .sln file with Visual Studio 2015, hit F5, have a little patience and be amazed :-).

vsreact's People

Contributors

martijnboland 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

Watchers

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

vsreact's Issues

Web Project contains nuget package references, but there is no package.config

When using webpack alone to build the web distribution there is no issue, but users that want to deploy to production via web deploy will need to build the web project in order create a package for deployment. The project itself does not build as is because it has a reference to a compilers dll, but there is no package.config defined for the project.

ERROR in ./app/index.js - Symbol is not defined

After I cloned the whole project and pressed F5 in VS2015. I'm getting the following error in the Task Runner Explorer:

ERROR in ./app/index.js
Module build failed: ReferenceError: Symbol is not defined
    at plugin (C:\dev\VSReact\VSReact.Web\node_modules\react-hot-loader\lib\babel\index.js:53:23)
    at Function.memoisePluginContainer (C:\dev\VSReact\VSReact.Web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:134:13)
    at Function.normalisePlugin (C:\dev\VSReact\VSReact.Web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:168:32)
    at C:\dev\VSReact\VSReact.Web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:208:30
    at Array.map (native)
    at Function.normalisePlugins (C:\dev\VSReact\VSReact.Web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:180:20)
    at OptionManager.mergeOptions (C:\dev\VSReact\VSReact.Web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:300:36)
    at OptionManager.addConfig (C:\dev\VSReact\VSReact.Web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:232:10)
    at OptionManager.findConfigs (C:\dev\VSReact\VSReact.Web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:436:16)
    at OptionManager.init (C:\dev\VSReact\VSReact.Web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:484:12)
    at File.initOptions (C:\dev\VSReact\VSReact.Web\node_modules\babel-core\lib\transformation\file\index.js:223:65)
    at new File (C:\dev\VSReact\VSReact.Web\node_modules\babel-core\lib\transformation\file\index.js:140:24)
    at Pipeline.transform (C:\dev\VSReact\VSReact.Web\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
    at transpile (C:\dev\VSReact\VSReact.Web\node_modules\babel-loader\index.js:14:22)
    at Object.module.exports (C:\dev\VSReact\VSReact.Web\node_modules\babel-loader\index.js:88:12)

I do have NodeJS v4 and Webpack Task Runner Extension installed. I also did

npm install babel-core --save-dev

locally to my VSReact project folder. What else am I doing wrong? Or are the new release packages breaking this wonderful build?

thanks!

Blank page when running the web app

I've followed the instructions but when I run the web app I see a blank page.

View source shows:

<html>
  <head>
    <meta charset="utf-8">
    <title>Redux TodoMVC</title>
  </head>
  <body>
    <div class="todoapp" id="root">
    </div>
  </body>
  <script src="{%=o.htmlWebpackPlugin.files.chunks.vendor.entry%}"></script>
  <script src="{%=o.htmlWebpackPlugin.files.chunks.main.entry%}"></script>
</html>

I've installed both webpack task runner and npm script runner. Not sure if I need some extra configuration.

Webpack production

Hello,
could You please add some readme part about getting and using production release? I'm able to get the index.html, main.js and vendor.js files in dist directory, but I'm not able to view the app using the index.html file.

The hot reload with development configuration works fine.
Thank You for Your work!

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.