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
- Docker image
- React front end
This Web Server is designed to be run on nodejs 16 with mongodb 6.0.3. Docker image will be created in the future.
- Clone or fork this repo and run
npm install
to install all dependencies. - 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.)
- If you are running in a development environment, create a
- Run
npm run build_linux
to build the project. /npm run build
to build the project for windows. - Run
npm run startOnly
to start the server.
See required.md for required configuration.
- When running in development mode, the template will be compiled via the
src/
path, while in production mode, the template will be compiled via thebin/
path.