Skip to content

Bioblaze/node-project-template

Repository files navigation

Node Project Template

Public Template Project

LicenseDiscord

Read this in other languages: English.

Contents

  1. Short description
  2. Long description
  3. Project roadmap
  4. Getting started
  5. Projects using Template
  6. Useful Commands
  7. Built with
  8. Contributing
  9. Versioning
  10. Authors
  11. License
  12. Acknowledgments

Short description

Base Template for any Node.js Application.

What's the problem?

It can take minutes, to sometimes hours to setup the Base Project, get your Process Manager Setup, Figure out your Docker Support, get your Development Tools setup, maybe even setup your Readme with all the commands you need and copy/paste them into the terminal.

How can technology help?

It has a simple, base structure to build off of for any Node.js Application Development. It comes with a complete Makefile with docker-compose and docker support along with pm2 deployment support.

The idea

I got sick and tired of setting up Node.js Micro Service projects, and after doing it 1000 times I just said.. Template time, and here we are.

Long description

More detail is available here

Project roadmap

RoadMap

Getting started

Prerequisites

  1. Docker Installed
  2. If you are a Windows User please Install Windows SubSystem Linux (Ubuntu)
    1. Make sure you have make installed. and WSL2 along with patch kernal & Docker-edge
  3. Install Node.js
    1. Install PM2 Globally
  4. Rename the example.env file to .env and fill in the Information requested as well as put your Variables there.

Installing

Just Git Pull the Repo, or download a Zip of it.

Projects using Template

Currently working on utilizing this in a few Projects will List them here, once they are ready.

Useful Commands

  1. make npm
    1. Installs Project Deps utilizing NPM
  2. make yarn
    1. Installs Project Deps utilizing Yarn
  3. make start
    1. Starts Project Locally with what the NODE_ENV has set. production, staging, or development
  4. make stop
    1. Stops the Project Locally
  5. make build
    1. Builds the Project into a docker container.
  6. make up
    1. Brings the Docker Container up for Testing utilizing Docker Compose
  7. make logs
    1. Allows you to see all the Logs for a Current Project
  8. make down
    1. Brings the Docker Container down
  9. make console
    1. Opens a console into the Container for the Project
  10. make pm2deploy
    1. Deploy's the Project too whatever server it is set too, with settings based on NODE_ENV
  11. make pm2setup
    1. This will Setup the Server the Project is being Deployed too.
  12. make pm2update
    1. Update a Project on the Deployment Servers.

Built with

  • Node.js - Base of the Project
  • Docker - Easy Local Testing
  • PM2 - Fastest way to keep a process for testing
  • GIT - Doing the Storage and Updating WOOT
  • Make - I couldn't live without you, I want you too know <3

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Randolph Bioblaze Payne Aarseth - Initial work - Bioblaze

See also the list of contributors who participated in this project.

License

This project is licensed under the Apache 2 License - see the LICENSE file for details

Acknowledgments

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors