Giter Site home page Giter Site logo

supreme-enigma's People

Contributors

akiraheid avatar dependabot[bot] avatar

Watchers

 avatar

supreme-enigma's Issues

deploy website from client

Using a make command, be able to generate the website on a computer and then deploy the site to the server using SSH auth.

Cannot get last x articles

#12 renamed article files, so now it's impossible to get the last x published and the server crashes. The server now needs to build a list of publish history via git commands to get the first published date of the file.

Currently the server fails with this error:

Thu, 27 Dec 2018 02:02:36 GMT body-parser deprecated undefined extended: provide extended option at app.js:5:17
/supreme-enigma/js/common.js:21
		const aInt = aMatches.length == 1 ? parseInt(aMatches[0], 10)
		                      ^

TypeError: Cannot read property 'length' of null

Autorun on system start up

Create a script that will cause the docker website to run on system startup. This is primarily for the webserver in the event of migration or system reboot.

Fix running server from docker

Running the image from docker causes the following error

internal/modules/cjs/loader.js:605
    throw err;
    ^

Error: Cannot find module 'express'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
    at Function.Module._load (internal/modules/cjs/loader.js:529:25)
    at Module.require (internal/modules/cjs/loader.js:657:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/app/app.js:1:79)
    at Module._compile (internal/modules/cjs/loader.js:721:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.js:552:3)

deliver bootstrap

Server configuration prevents cross-domain loading of resources, so bootstrap CSS does not load.

Add tests

Add basic server tests to run before a commit to make sure the server won't crash immediately.

Make page colors black and white

For simplicity and for AMOLED displays to take advantage of, use pure black background and pure white text. Adjust link colors as necessary (probably a light blue)

Can only ever get five articles or ideas

The website can only ever deliver 5 articles. Compile the list pages on server start with all items included and keep returning that instead of rendering every time.

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.