This project is a web-based procurement system designed to manage requisitions, tenders, purchase orders, and other related workflows.
- Frontend: SvelteKit, TypeScript, Tailwind CSS
- Backend: Go (planned)
- Database: SQLite (planned)
- 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.
- Continue development of core modules.
- Integrate with backend services.
- Implement user authentication.
- Refine UI and add more features as per the project checklist.
This section will guide you through setting up and running the Procurement System application locally.
Ensure you have the following installed on your system:
-
Clone the repository:
git clone https://github.com/gTahidi/Procure.git cd procurement -
Set up the Frontend: Navigate to the
frontenddirectory and install the necessary Node.js dependencies:cd frontend npm install cd ..
-
Set up the Backend: Navigate to the
backenddirectory and ensure Go modules are tidy :cd backend go mod tidy cd ..
To run the application, you'll need to start both the backend and frontend services.
If this is your first time running the application or if you need to reset the database:
- Navigate to the
backenddirectory:cd backend - Run the database initialization script:
go run db_init.go
- Navigate back to the project root:
This command will execute the
cd ..db_init.gofile, which should set up theprocurement.dbSQLite database in thebackenddirectory.
- Navigate to the
backenddirectory:cd backend - Run the Go backend server:
This command assumes your main server logic is in
go run main.go
main.go. - 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...".
- In a new terminal window or tab, navigate to the
frontenddirectory:cd frontend - Start the SvelteKit development server:
npm run dev
- The frontend application will typically be available at
http://localhost:5173(or another port specified by SvelteKit).