Code Monkey home page Code Monkey logo

cows-onepage's Introduction

A One Page Website Demo

This is a one page RWD website to show case how easily you can create & manage a website using coServ. The web desgin was kept to minimum so you can easily modify it to suit your needs.

Install & Run

You can install the website using npm:

npm install cows-onepage

Once the package is installed, you can change to the install directory and type:

node startWeb

That will start the website. You can point your browser to http://127.0.0.1:8080 to see the results.

Deploy To Heroku

The demo website is ready for Heroku deployment right out of the box. There are only two minor changes you have to make. First of all, change the port setting in the startWeb.js file (line #9) to "process.env.PORT" (see the sample code below).

var  serverConfig = {
        "apiEngine": {
            "host": "coimapi.tw",
            "port": 80,
            "method": "POST"
        },
        "server": {
            "wwwPath": __dirname,
            "port": process.env.PORT,
            "maxSockets": 200
        }
     },
     coServ = require('coserv');

coServ.init(serverConfig);
coServ.restart();

You'll also need to assign the domain name of your Heroku machine to the demo website. Replace "127.0.0.1" with your Heroku domain in the sites.json file.

Now you can push the whole website to Heroku using 'git push heroku master' and that's it. Your website is now available to the world.

Documentation

A simple article has been included to show you how to modify this demo website to become your own.

cows-onepage's People

Contributors

benlue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.