GithubHelp home page GithubHelp logo

rlashofregas / robinlashofregas.com Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.98 MB

My ground-up build of my own blog! Mostly I use this for learning new stuff, but one day it will be up and running I promise :)

C# 27.44% Dockerfile 2.91% JavaScript 2.52% TypeScript 26.72% CSS 1.72% HTML 4.93% Shell 33.75%

robinlashofregas.com's Introduction

Introduction

TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.

Getting Started

Install Dev Dependencies

Linux

Install node.js and npm:

  • archlinux: sudo pacman -S nodejs npm

Install angular:

  • npm install -g @angular/cli

Install .NET Core:

  • archlinux: sudo pacman -S dotnet-runtime dotnet-sdk

Install docker and docker-compose:

  • archlinux: sudo pacman -S docker-compose

Build and Test

To build and run with docker compose:

  • start/enable docker daemon

  • make sure the docker daemon is running: docker info

  • From root directory run docker-compose up -d --build

  • Navigate to localhost:5431

To build a component into docker image:

  • From root dir run: docker image build . -t webspa:1.0 -f src/webspa/Dockerfile
  • To run image: docker container run -d -p 8080:80 --name webspa webspa:1.0

To connect to running database container:

  • run docker network ls to get the name of the network (probably robinlashofregascom_com.robinlashofregas.network)
  • run docker run -it --network <NETWORK NAME> --rm mariadb mysql -hsqldb -uroot -p
    • docker run runs a new container
    • -it means interactive mode (i) and attach stdin and stdout to terminal (t)
    • --rm specifies to remove the container on exit
    • mariadb is the image to run
    • mysql is the command to run against the container
    • specifies the host of the db, sqldb in this case because new container is being added to same network
    • -u is username
    • -p specifies to ask for password

Common MySql Commands reference: http://g2pc1.bu.edu/~qzpeng/manual/MySQL%20Commands.htm

Contribute

To add migration for BlogAPI:

  • Install dotnet ef CLI tool: dotnet tool install --global dotnet-ef --version 3.0.0
  • From BlogAPI directory run (on linux use DataContext/Migrations): dotnet ef migrations add <MIGRATION NAME> -o DataContext\Migrations

robinlashofregas.com's People

Contributors

dependabot[bot] avatar rlashofregas avatar

Watchers

 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.