Giter VIP home page Giter VIP logo

fornever.me's Introduction

fornever.me: Engineer, Programmer, Gentleman Status Aquana Docker Image

This is the fornever.me site source code. It uses ForneverMind โ€” a simple homemade blog engine mainly written in F# programming language.

Dependencies

ForneverMind requires recent Node.js installation both for building and for running.

Configuration

Backend reads its settings from the standard appsettings.json file. The available settings are:

  • baseUrl: URL to listen when started

Build

Frontend

To compile frontend part, you'll need a recent (16.0+) Node.js installation. The bundled Yarn package manager will be automatically executed on build.

Talks

There's an additional talks archive included as a git submodule in this repository. To prepare tasks for build, use the Scripts/Prepare-Talks.ps1 script. Talks require external Yarn installation of v1.22.0 or higher.

Backend

To compile the backend, you'll need a .NET 5 SDK installation.

Here's a sample build script:

$ dotnet build
$ cd ForneverMind
$ dotnet run

Test

$ dotnet test

Publish

Prepare the production-ready distribution in the publish directory:

$ dotnet publish --configuration Release --output publish ./ForneverMind

This application uses Docker for deployment. To create a Docker image, use the following command:

$ docker build -t revenrof/fornever.me:$FORNEVER_ME_VERSION -t revenrof/fornever.me:latest .

(where $FORNEVER_ME_VERSION is the version for the image to use)

Then push the image to the Docker Hub:

$ docker login
$ docker push revenrof/fornever.me:$FORNEVER_ME_VERSION
$ docker push revenrof/fornever.me:latest

Deploy

To install the application from Docker, run the following command:

$ docker run -d --restart unless-stopped -p:$PORT:80 --name $NAME revenrof/fornever.me:$VERSION

Where

  • $PORT is the port you want to expose the application on
  • $NAME is the container name
  • $VERSION is the version you want to deploy, or latest for the latest available one

For example, a production server may use the following settings (note this command uses the Bash syntax; adapt for your shell if necessary):

PORT=5001
NAME=fornevermind
VERSION=latest
docker pull revenrof/fornever.me:$VERSION
docker rm -f $NAME
docker run -d --restart unless-stopped -p $PORT:80 --name $NAME revenrof/fornever.me:$VERSION

Other components

  1. EvilPlanner meant to be an integral part of the site, but it needs to be installed separately.
  2. fornever.me uses an easy-to-install Disqus comment system.

Documentation

fornever.me's People

Contributors

dependabot[bot] avatar fornever avatar newlifer 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.