An open API service indexing awesome lists of open source software.

https://github.com/truepadawan/hardware-inventory

A Hardware Inventory web application
https://github.com/truepadawan/hardware-inventory

expressjs nodejs pugjs

Last synced: 4 months ago
JSON representation

A Hardware Inventory web application

Awesome Lists containing this project

README

          

# [Hardware Inventory](https://hardware-inventory.onrender.com/)

![image](https://github.com/TruePadawan/Hardware-Inventory/assets/71678062/7b8d2fbb-ec39-43e3-b788-b481cdb42bba)

**Hardware Inventory** is a simple CRUD web-application I built to practice working with server-side technologies, NodeJS + ExpressJS to be exact.
It's provides an interface for creating lists of hardwares which are group based on the type of hardware.
My goal was mainly to get comfortable with Node and ExpressJS and see how they work with other server-side tools.

## Stack

- **Node/ExpressJS** for the backend of the application.
- **MongoDB** for database.
- **Pug** as a template engines for creating the pages.
- **Express Validator** for user input validation.
- **Cloudinary** for storing and managing images uploaded by users.

## Setup

After cloning to your local environment, install the dependencies with the `npm install` command.
The application requires a couple of environment variables:

- `MONGODB_CONNECT_STR` - MongoDB database connection string.
- `ADMIN_PASSWORD` - A string that serves as a password for allowing editing and delete operations.
- `CLOUDINARY_API_SECRET`, `CLOUDINARY_API_KEY` and `CLOUDINARY_CLOUD_NAME` - These are gotten from your Cloudinary console.

Start the application with `npm run serverstart` which uses nodemon rather than node itself, Nodemon restarts the server if any changes are made to the code.