Git Product home page Git Product logo

quick-asp-blog's Introduction

Blog

Simple blog on ASP.NET 5.0

What is it

I want to start my blog (locally on laptop) and don't want to use ready-made solutions (for example, BlogEngine).

The idea was to create and run application on IIS as soon as possible.

It is very simple application, only list all posts and creation/edition/deletion for each one.

All posts stores in UTF-8 text files in application subfolder.

Creation

I have Visual Studio 2019 with .NET 5.0 (Core).

Before that I had experience in creating web applications on ASP.NET Core 2 and ASP.NET MVC (.NET 4.0).

First, I create new project (ASP.NET Core Web Application) with Razor Pages content.

Then add/modify pages, add some code (not a lot of).

Publication

I need to blog on my laptop at any time.

I decided to host on IIS (have Windows 10 with IIS 10).

  • Install .NET Core hosting bundle.
  • In IIS management console create new application pool, add new application for Default Web Site.
  • Publish in folder from Visual Studio.

quick-asp-blog's People

Contributors

miptleha avatar

Watchers

James Cloos avatar  avatar

quick-asp-blog's Issues

edit long entity

extend textarea down to long text.
scroll is not convinient to view text content.
may be extend textboxes (caption and text) to all screen via javascript (or bootstrap)

empty record

It is better add validation for empty post. There is no point in such post.
At least for the title.

Anonymous editing

Need protection from adding/editing/dropping posts from unknown hosts or not from me (kid or someone else).

It is suggested to create login.txt file in the root folder with login and password strings for admin.
Any write action will require authorization (only once for session).

It is simple protection. From another computer this file not visible (not in wwwroot folder).

new record problem

Press "Create new blog record", then back.
Empty record is created.
Please, don't create any record until user press 'Save' button.

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.