Skip to content

incandesc3nce/Inventory-Application

Repository files navigation

Inventory-Application

This is an inventory application that allows users to add, update, delete and view items in the inventory. Movies, TV shows and animated media are taken as examples of items in the inventory. They are distinguished by categories ( Movies, TV Shows and Animated) and genres (e.g. Action, Drama, Fantasy, Comedy and others).

Features

  • Add items, categories and genres to the inventory
  • Update items, categories and genres in the inventory
  • Delete items, categories and genres from the inventory
  • View items, categories and genres in the inventory

Tech Stack

My Skills

Live Preview

Live Preview is available on:

  • Railway (faster page load time)
  • Render (use if Railway isn't available)

Installation

  1. Clone the repository
git clone https://github.com/incandesc3nce/Inventory-Application.git
  1. Install dependencies
npm install
  1. Create a .env file in the root directory and add the following environment variables
DB_URL - The URL to the PostgreSQL database (URL format: postgresql://dbuser:[email protected]:3211/mydb)
HOST - The host for the server (default is localhost)
PORT - The port for the server (default is 3000)
  1. Create a PostgreSQL database named inventory, connect to it
CREATE DATABASE inventory;
\c inventory; /* psql connect */

and run the following command in your terminal to populate the database with the necessary tables and example data

npm run populate
  1. Start the server
npm start
  1. Terminal will give you the URL to access the application
Server running at http://localhost:3000

Feedback

If you liked the project, please give it a star⭐. It means a lot!🙂

If you want to report bugs, please open an issue or a pull request.

About

Movies Inventory Application in Node.js, TypeScript and Express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published