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).
- 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
Live Preview is available on:
- Clone the repository
git clone https://github.com/incandesc3nce/Inventory-Application.git
- Install dependencies
npm install
- 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)
- 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
- Start the server
npm start
- Terminal will give you the URL to access the application
Server running at http://localhost:3000
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.