Skip to content

Instantly share code, notes, and snippets.

View jsheridanwells's full-sized avatar

Jeremy Wells jsheridanwells

View GitHub Profile

Entity Framework Notes

Installing SQL Backup

Restore backup in SQL Management Studio

In project, create new ADO.NET Entity Model. Select Code First Template option

New connection -> Select Server (PUL0068L in my case) -> Select Database -> Test Connection -> Name connection string -> Select Tables to store -> Leave Singular and Plural names

EF Core Tutorial Notes

(From this tutorial)...

Make sure you have these workloads:

  • DotNet Desktop Development
  • Data Storage and Processing
  • ASP and Web Development * .Net Core Cross Platform Development

ASP.NET API Setup Part 1

Starting

  1. Creating Project: Scaffolding:
  • New Project -> .NET Core -> ASP.NET Core Web Application
  • Then, API template
  1. Use NuGet to check for any package updates
@jsheridanwells
jsheridanwells / Sample.Tests.cs
Last active March 12, 2018 19:46
Basic C# Unit Tests
using System;
using BankAccountNS;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace BankTest
{
[TestClass] // Tests are set in test classes...
public class BankAccountTests
{
[TestMethod] // ... and test methods
@jsheridanwells
jsheridanwells / Program.cs
Last active March 2, 2018 13:32
My first basic ML reader/writer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace Bootcamp_JeremyWells
{
class Program
@jsheridanwells
jsheridanwells / Section_2-1.md
Last active February 12, 2018 19:19
Udemy Angular 2 / .NET Core course

Angular Setup

  1. New project (make sure Node version is set to 8.9.1 (or most current):
$ ng new ProjectName
  1. To create a component: ng g c componentName.

  2. Import http modules in app.module.ts:

@jsheridanwells
jsheridanwells / notes.md
Created February 9, 2018 14:09
Setting up SSL certificates on NGINX server w/ Certbot

Setting UP SSL Certificates on NGINX Server on Ubuntu w/ Certbot

Certbot Docs: https://certbot.eff.org/docs/

Digital Ocean Tutorial: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04

  1. Install Certbot:
$ sudo add-apt-repository ppa:certbot/certbot
@jsheridanwells
jsheridanwells / Notes1.md
Created February 1, 2018 21:19
Testing an AngularJS app with Karma and Jasmine

From this tutorial

Setup

Install basic structure

$ mkdir meet-irl && cd meet-irl
$ touch server.js
$ mkdir app && cd app
$ touch index.html app.js app.css
@jsheridanwells
jsheridanwells / notes_part1.md
Last active June 26, 2024 13:13
Rails ToDo API w/ RSpec TDD

Build a RESTful JSON API w/ Rails and RSpec PART ONE

From this tutorial.

Dependency Setup

Gemfile.rb:

  1. Rspec-rails to development and test groups
group :development, :test do
  gem 'rspec-rails', '~> 3.5'

RSpec TDD Tutorial

From this tutorial

  1. Set up new Rails app. -T flag skips installation of MiniTest:
$ rails new my_app -T
  1. Add RSpec to Gemfile.rb: