Code Monkey home page Code Monkey logo

solenya-aspnetcore-starter's Introduction

Solenya ASP.NET Core Starter Project

It's set up to use Webpack 4 & Bootstrap w/ sass files.

Setup Tips

Here's some setup tips, which have nothing to do with solenya itself, but which you may find useful:

  • Bootstrap 4 uses sass files, which unfortunately means that you'll need the node-sass package, that requires manual configuration:
    • To configure your machine:
      • npm install --global --production windows-build-tools
      • npm install --global node-gyp
      • setx PYTHON %USERPROFILE%\.windows-build-tools\python27\python.exe
    • Then, when building and running your project, should node-sass fail:
      • From the Package Manager Console, run the the following command: npm rebuild node-sass --force
      • Rebuild and run your project
  • Occassionally, you'll ned to wipe the node_modules directory, where all the client libraries are installed. Install the rimraf tool to wipe it.
  • The project is setup to use https locally. To make this work on your machine, you need to go to the project properties, uncheck SSL, save the project, and then go back into the project properties and re-check SSL. Visual Studio will automatically (lol) setup a new port for you.

Code To Play With

There's plenty of code samples here: https://stackblitz.com/@solenya-group. In particular, solenya-samples has many common small uses cases.

You may also want to load some additional solenya packages to your packages.json, such as solenya-animation, solenya-autocomplete, and solenya-tables.

Debugging

Solenya libraries ship with sourcemaps, so you can step into the library code when debugging. The webpack.config.js has been setup to make sure the sourcemaps work.

Releasing

The Startup.cs and webpack.config.js files have been setup to minify your javascript code in release mode.

Hot Module Reloading

This dynamically reloads your client code as you make changes to it, without having to refresh your browser.

It's on for debug mode and off for release mode.

solenya-aspnetcore-starter's People

Contributors

solenya-group avatar

Watchers

James Cloos avatar Umut Özel avatar

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.