GithubHelp home page GithubHelp logo

rak3rman / base-webframework-nodejs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 444 KB

Base WebFramework NodeJS - A general template for a NodeJS web application running express with no authentication

License: MIT License

JavaScript 76.32% Shell 0.36% Handlebars 23.32%
nodejs nodejs-framework basecode website-framework

base-webframework-nodejs's Introduction

Base WebFramework NodeJS

Build Status

A general template for a Node.js web application running Fastify and Handlebars

Basic Structure

This project is a base web framework to run a web application using Fastify through Node.js. Being a 'base' framework, this project only displays a webpage through a specified port with no authentication. The structure of this application is described below in the application map.

Application Map

--app.js # Primary NodeJS file
--routes # Routes for views
  --error-routes.js
--templates # Components of webpage, HTML
  --home.ejs # Home Page
  --error.ejs # Error Page
--config # Folder where configurations are set
  --testing.js # Exit options when running in testing environment
  --setup.json # Helper file for config.json
  --config.json # Appears upon system configuration within application
--public # Place static files to be accessed by webpage here
--package.json
--package-lock.json
--start.sh
--LICENSE
--README.md
--.travis.yml
--.gitignore

Install and Setup

git clone https://github.com/RAK3RMAN/base-webframework-nodejs.git
  • Setup Base WebFramework NodeJS
    • Enter the base-webframework-nodejs folder
      • cd base-webframework-nodejs
    • Install all required packages with root-level access (if needed)
      • sudo npm install
    • Start default application using npm
      • npm start
    • If you want a different broadcast port, you can configure these values by proceeding with the:
      • Hardcode option:
        • Enter the config.json file
          • sudo nano base-webframework-nodejs/config/config.json
        • Edit the webserver_port parameter to your desired configuration
    • If any errors occur, please read the logs and attempt to resolve. If resolution cannot be achieved, post in the issues under this project.
  • Access web application through localhost:3000

base-webframework-nodejs's People

Contributors

rak3rman avatar snyk-bot avatar

Watchers

 avatar

Forkers

syedhuzam

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.