Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

gTahidi/Procure

Repository files navigation

Procurement System

This project is a web-based procurement system designed to manage requisitions, tenders, purchase orders, and other related workflows.

Technology Stack

  • Frontend: SvelteKit, TypeScript, Tailwind CSS
  • Backend: Go (planned)
  • Database: SQLite (planned)

Current Status

  • Basic project structure set up.
  • Initial UI for layout, navigation, and stubs for core modules (requisitions, tenders) implemented.
  • Placeholder icons are in use due to temporary issues with an icon library.

Next Steps

  • Continue development of core modules.
  • Integrate with backend services.
  • Implement user authentication.
  • Refine UI and add more features as per the project checklist.

Getting Started

This section will guide you through setting up and running the Procurement System application locally.

Prerequisites

Ensure you have the following installed on your system:

  • Node.js (which includes npm) for the frontend.
  • Go for the backend.

Setup

  1. Clone the repository:

    git clone https://github.com/gTahidi/Procure.git
    cd procurement
  2. Set up the Frontend: Navigate to the frontend directory and install the necessary Node.js dependencies:

    cd frontend
    npm install
    cd ..
  3. Set up the Backend: Navigate to the backend directory and ensure Go modules are tidy :

    cd backend
    go mod tidy
    cd ..

Running the Application

To run the application, you'll need to start both the backend and frontend services.

1. Initialize the Database (Backend)

If this is your first time running the application or if you need to reset the database:

  1. Navigate to the backend directory:
    cd backend
  2. Run the database initialization script:
    go run db_init.go
  3. Navigate back to the project root:
    cd ..
    This command will execute the db_init.go file, which should set up the procurement.db SQLite database in the backend directory.

2. Start the Backend Server

  1. Navigate to the backend directory:
    cd backend
  2. Run the Go backend server:
    go run main.go
    This command assumes your main server logic is in main.go.
  3. The backend server should now be running (typically on port 8080). You should see log output in the terminal indicating it has started, e.g., "Backend server starting on port :8080...".

3. Start the Frontend Server

  1. In a new terminal window or tab, navigate to the frontend directory:
    cd frontend
  2. Start the SvelteKit development server:
    npm run dev
  3. The frontend application will typically be available at http://localhost:5173 (or another port specified by SvelteKit).

About

Pro-curing the procurement process

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •