Order Management System
Log in to your account (Register if no account yet), and manage your customer's tomorrow's order!
- Clone this repository
git clone https://github.com/khianvictorycalderon/Veroca.git - Install postgresql server (if you don't have it yet)
- Run the following postgresql query in your local postgresql:
CREATE EXTENSION IF NOT EXISTS "pgcrypto"; CREATE TABLE IF NOT EXISTS users ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), first_name TEXT NOT NULL, last_name TEXT NOT NULL, username TEXT NOT NULL UNIQUE, birth_date DATE NOT NULL, password TEXT NOT NULL, created_at TIMESTAMP DEFAULT NOW() ); CREATE TABLE IF NOT EXISTS user_sessions ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE, session_token TEXT NOT NULL UNIQUE, created_at TIMESTAMP DEFAULT NOW(), expires_at TIMESTAMP NOT NULL, user_agent TEXT, ip_address TEXT ); CREATE TABLE IF NOT EXISTS orders ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE, name TEXT NOT NULL, customers JSONB NOT NULL DEFAULT '[]', created_at TIMESTAMP DEFAULT NOW(), updated_at TIMESTAMP DEFAULT NOW() );
- Create
.env.localthat contains the following:and replace the DATABASE_URL with you actual database configurationsDATABASE_URL=postgres://<user>:<password>@<host>:<port>/<database_name>
- Run
npm install - Run
npm run dev
- Next.js
- Tailwind CSS
- PostgreSQL
The following is a list of installed dependencies and configuration settings used in this project.
You don’t need to install anything manually, as all dependencies are already managed through package.json.
This section is provided for reference only, to give you insight into how the project was set up.
npm install pgnpm install --save-dev @types/pgnpm install axiosnpm install react-iconsnpm install react-hook-formnpm install dotenvnpm install zodnpm install bcryptjs