Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

GWMCwing/Home-Server

Repository files navigation

Home Server

commit-activity last-commit license website-status

This repo is now archived. Development is moved to this repo using a new stack and architecture approach.


A repo for my web server. This is a work in progress. This repo is used for learning and experimentation on backend development, front end development on basic css and html structuring.

Future updates may include

  1. Docker image
  2. React front end

Installation

This Web Server is designed to be run on nodejs 16 with mongodb 6.0.3. Docker image will be created in the future.

  1. Clone or fork this repo and run npm install to install all dependencies.
  2. Setup Environment Variables
    • If you are running in a development environment, create a .env file in the root directory and add the environment variables stated in the required.md file.
    • If you are running in a production environment, follow the instructions in the required.md file.
    • Do NOT add any environment variables in .env when running as a production environment. (Future update will remove the import on .env during production.)
  3. Run npm run build_linux to build the project. / npm run build to build the project for windows.
  4. Run npm run startOnly to start the server.

Required Configuration

See required.md for required configuration.

Notes

  • When running in development mode, the template will be compiled via the src/ path, while in production mode, the template will be compiled via the bin/ path.