https://github.com/thuyencode/inventory-application-the-odin-project
Project: Inventory Application | The Odin Project
https://github.com/thuyencode/inventory-application-the-odin-project
express nodejs theodinproject
Last synced: 5 months ago
JSON representation
Project: Inventory Application | The Odin Project
- Host: GitHub
- URL: https://github.com/thuyencode/inventory-application-the-odin-project
- Owner: thuyencode
- Created: 2024-08-03T13:19:49.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-14T12:02:10.000Z (over 1 year ago)
- Last Synced: 2025-03-21T02:25:30.310Z (11 months ago)
- Topics: express, nodejs, theodinproject
- Language: TypeScript
- Homepage:
- Size: 1010 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project: Inventory Application
[More details information here.](https://www.theodinproject.com/lessons/node-path-nodejs-inventory-application)
> :warning: This demo is out-dated, now you can edit and delete products.
[](https://jmp.sh/v/Pvy3UfCFQTgKFzTDZ17G)
**Tech stacks:**
| Frontend | Backend |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| [](https://github.com/LelouchFR/skill-icons)
and [Tanstack Router](https://tanstack.com/router/latest), [Ky](https://github.com/sindresorhus/ky), [Valibot](https://valibot.dev) | [](https://github.com/LelouchFR/skill-icons)
and [node-postgres](https://node-postgres.com), [Valibot](https://valibot.dev) |
## Getting started
### 1. Setting-up database
Your need to install PostgreSQL first using your OS's package manager, an installer file or using Docker (recommended).
Configure the host address, port number, username, password, a database according to [`.env.example`](./.env.example).
Copy the file [`.env.example`](./.env.example) into `.env.production.local` and `.env.development.local` and edit the env variables' values.
## 2. Running the project
First, install all the dependencies:
```bash
npm i
```
To run the dev server:
```bash
npm run dev
```
To export and run the production build:
```bash
npm run build
npm run start
```