AngularJS SPA Template for Visual Studio is a project skeleton for a simple single-page web application (SPA) built with AngularJS, Bootstrap, and ASP.NET (MVC, Web Api, SignalR).

Overview

AngularJS SPA Template for Visual Studio

This project is a skeleton for a simple single-page web application (SPA) built on top of the:

You can use it to quickly bootstrap your AngularJS web app projects and dev environment for these projects.

Just clone the repo, open solution file from the Source folder and you are ready to develop and test your application.

Demo Site

http://angular-demo.tarkus.me

Visual Studio Extension

AngularJS SPA Template for Visual Studio

Project Structure

AngularJS SPA Project Structure

Development Environment

Hint: make sure that you have the latest version and updates for Visual Studio and required extensions installed

Getting Started

To clone the repo run:

git clone -o base https://github.com/KriaSoft/AngularJS-SPA-Template.git MyApp

Where MyApp is your project name. Then rename the included solution file:

git mv Source/Application.sln Source/MyApp.sln
git add .
git commit -m 'Rename Application.sln file'

Open MyApp.sln in Visual Studio and you are ready to go.

Later on you can always pull and merge the latest changes from AngularJS SPA Template repo into your project by running the following commands:

git fetch base
# Fetches any new changes from the AngularJS SPA Template repository (base)
git merge base/master
# Merges any changes fetched into your working files

Feedback

Have questions or need help? Email me at [email protected] or Skype: koistya

Comments
  • ~/scripts/controllersSpec.js missing

    ~/scripts/controllersSpec.js missing

    included in Views/Jasmine/SpecRunner.html:

    <!-- include spec files here... -->
    <script src="~/scripts/controllersSpec.js"></script>
    

    This should be controllers.spec.js

    opened by svdoever 1
  • Module not found

    Module not found

    I'm trying to use Material instead of Bootstrap in an Angular project template project inside an asp.net core 2.1 solution in VS 2017. I'm using Angular 7, but the ClientApp won't let me remove Bootstrap, since I read Bootstrap and Angular material are mutually exclusive.

    The problem is when I run ng serve on the command line as instructed incorrectly here: https://docs.microsoft.com/en-us/aspnet/core/client-side/spa/angular?view=aspnetcore-2.1&tabs=visual-studio npm start doesn't work.

    Everything worked fine until I tried to remove Bootstrap. But I want to use Angular Material instead !!

    This has also wasted me an entire day, since, I decided to start afresh with a new project, yet for some strange reason the ClientApp angular project in the .net core solution insists on using Angular 5.2.0, instead of the latest. So now I've got to go through the process of updating all the package.json stuff. :(

    opened by robeverett 1
  • How to connect sign in with backend (web api) services

    How to connect sign in with backend (web api) services

    I'm assuming it must involve some degree of cookies passing between client and server?

    That is, in my Startup.ConfigureAuth(IAppBuilder app), I've got this:

                // Enable the application to use a cookie to store information for the signed in user
                app.UseCookieAuthentication(new CookieAuthenticationOptions
                {
                    AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
                    LoginPath = new PathString("/login")
                });
    
                // Use a cookie to temporarily store information about a user logging in with a third party login provider
                app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);
    

    But am not entirely sure what that means. I don't want to redirect to /login, for instance, if I can just pass the front page sign in details, user name and/or email and password, with or without cookie, to a backend authentication service.

    Then from that point forward, how to maintain some level of authentication. i.e. user id with or without session id for security reasons. That sort of thing.

    opened by mwpowellhtx 0
  • AJAX/replace the navbar

    AJAX/replace the navbar "sign in" button with conditional username and/or credential input

    Hello,

    I don't like the separate page for the sign in. It feels kind of clunky to me, so I would like to simply "replace" the "sign in" button with user credential input and/or signed in credential.

    How hard would this be?

    For my part, I am not new, per se, to web, angular, MVC, etc, but more of a novice. Probably 30% versed, if you will.

    Thank you...

    opened by mwpowellhtx 0
  • Incomplete Contacts versus About

    Incomplete Contacts versus About

    Hello,

    As a boilerplate example, excellent piece of work, to begin with. But it is only a beginning. I'm sure that's been reiterated ad infinitum, so to speak. I found a couple of concerns, and I wonder if you can suggest better approaches.

    It seems like I needed to add Contacts in a couple different places in order for the wiring to even begin to operate "correctly". "Correct" in this case meaning, at minimum, no 404 errors; in practice, well that's another story beyond the scope here.

    As a backdrop, it's not the SOLID-est, nor GRASP-iest, Insert-Favorite-Architectural-Reference-Here, etc, boilerplate code around. But it is an interesting case study. Perhaps that's also some of the Angular MVC-ness rearing its ugly head, as comingled with the ASP.NET MVC container, I don't know.

    First, I needed to add a Contacts.cshtml. No problem. That could draw from whatever data model backs it up. Fine, great.

    Then I needed to add a ContactsCtrl to the controller.js. Okay, great. It's starting to be a bit verbose in the definition, but again, fine. We're tracking, I think.

    Finally, for the wiring to behave "properly", no 404, etc, I needed to connect a contacts state in the app.js. Then all was well, the Contacts page appeared.

    Victory! For the moment...

    In practice, I would like to keep track of modules, features, user (or group) based roles, authorization, and so on, in the back-end, and have that programmatically inform the application, views, etc. From reading and some experience, that seems like how it's done in production quality code. Apart from special cases, Angular controllers, services, etc, to special FE business logic, I'd like for that to be more than less server-oriented, data-driven, if you will.

    Interested in whatever feedback you can provide concerning this.

    opened by mwpowellhtx 0
Owner
Kriasoft
Here on GitHub we share our experience with web infrastructure, scalable web application design, and DevOps.
Kriasoft
A responsive, Bootstrap landing page template created by Start Bootstrap

Start Bootstrap - Landing Page Landing Page is a multipurpose landing page template for Bootstrap created by Start Bootstrap. Preview View Live Previe

Start Bootstrap 1.4k Jan 3, 2023
a blue-ish gray with a purple accent color palette for Visual Studio Code.

Installation via VSCode Open Extensions sidebar panel in VS Code. View → Extensions Search for nightfall Click Install to install it Click Reload to r

nightfall 6 Dec 21, 2021
A shop homepage Bootstrap HTML template created by Start Bootstrap

Start Bootstrap - Shop Homepage Shop Homepage is a basic HTML online store homepage template for Bootstrap created by Start Bootstrap. Preview View Li

Start Bootstrap 390 Jan 1, 2023
A Bootstrap HTML business homepage template created by Start Bootstrap

Start Bootstrap - Business Frontpage Business Frontpage is a basic business website template for Bootstrap created by Start Bootstrap. Preview View Li

Start Bootstrap 181 Nov 28, 2022
A Bootstrap HTML homepage template with feature boxes - created by Start Bootstrap

Start Bootstrap - Heroic Features Heroic Features is a multipurpose HTML template for Bootstrap created by Start Bootstrap. Preview View Live Preview

Start Bootstrap 160 Nov 27, 2022
Skeleton: A Dead Simple, Responsive Boilerplate for Mobile-Friendly Development

Skeleton Skeleton is a simple, responsive boilerplate to kickstart any responsive project. Check out http://getskeleton.com for documentation and deta

Dave Gamache 18.8k Dec 29, 2022
FREE Bootstrap Landing Page Template for Developers and Startups

Theme Details & Demo Details: https://themes.3rdwavemedia.com/bootstrap-templates/startup/appkit-landing-free-bootstrap-theme-for-developers-and-start

Xiaoying Riley 158 Nov 30, 2022
Bootstrap-print-css - Print Stylesheet for Bootstrap 5

Bootstrap Print CSS ??️ Bootstrap 5 no longer includes custom CSS for printing - with the CSS in this project you can add it back. Note: This should i

Christian Oliff 35 Dec 13, 2022
Light-switch-bootstrap - Dark mode toggle for Bootstrap 5

?? Light Switch for Bootstrap 5 Basic Bootstrap 5 custom checkbox to use night mode in your web site. Under the hood Switching to dark mode is done by

Han 35 Jan 2, 2023
Math magicians is a single page app for all mathematics lovers. Math Magicians allow users to perform simple calculations and It generates mathematics quotes.

Math Magicians Math Magician is a single Page App that have three interfaces. It allows users to perform simple math calculations, user can read the m

levy_ukwishaka 10 Aug 21, 2022
A web app landing page theme created by Start Bootstrap

Start Bootstrap - New Age New Age is a web app landing page theme for Bootstrap created by Start Bootstrap. Preview View Live Preview Status Download

Start Bootstrap 996 Dec 26, 2022
Tabler is free and open-source HTML Dashboard UI Kit built on Bootstrap

A premium and open source dashboard template with a responsive and high-quality UI. Preview Tabler is fully responsive and compatible with all modern

Tabler 32.6k Jan 9, 2023
Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress ?? Looking for v5? The master branch is un

styled-components 38k Dec 31, 2022
A responsive HTML template for coding projects with a clean, user friendly design. Crafted with the latest web technologies, the template is suitable for landing pages and documentations.

Scribbler - a responsive HTML template for coding projects and documentations Scribbler is a responsive HTML/CSS/Javascript template designed for deve

Amie Chen 394 Jan 1, 2023
🖼 A pure client-side landing page template that you can fork, customize and host freely. Relies on Mailchimp and Google Analytics.

landing-page-boilerplate A pure client-side landing page template that you can freely fork, customize, host and link to your own domain name (e.g. usi

Adrien Joly 129 Dec 24, 2022
Automatic GatsbyJS App Landing Page - Automatically generate iOS app landing page using GatsbyJS

Automatic GatsbyJS App Landing Page Create and deploy an iOS app landing page on GitHub Pages and Netlify in a couple of minutes ?? Fork this repo ??

Imed Adel 173 Jan 1, 2023
A Unique Food order landing page web application called 'HOMELY' where you can select available meals and add them to cart then order them.

End Result Click the link : https://foodapp-by-eniola.netlify.com Getting Started with Create React App This project was bootstrapped with Create Reac

Eniola Odunmbaku 26 Dec 31, 2022
Tailwind CSS Starter Template - Landing Page

Tailwind Toolbox - Landing Page Template Landing Page is an open source, generic landing page template for Tailwind CSS created by Tailwind Toolbox. G

Tailwind Toolbox 908 Jan 8, 2023
Material Design Based One Page HTML Template

Material Design One Page HTML Template MD One page template is fully responsive and free to use. This HTML template is based on Materialize, a CSS Fra

Joash 587 Jan 2, 2023