This is the backend for a Point of Sale (POS) system built using Express or Hapi. It provides functionalities for user authentication, product management, and order processing, with data stored in Firestore.
- User authentication (login and registration)
- Product management (CRUD operations)
- Order processing
- Middleware for authentication checks
- Configured for deployment on Google Cloud App Engine
pos-system
├── backend
│ ├── src
│ │ ├── app.ts
│ │ ├── config
│ │ │ ├── firebase.ts
│ │ │ └── auth.ts
│ │ ├── controllers
│ │ │ ├── authController.ts
│ │ │ ├── productController.ts
│ │ │ ├── orderController.ts
│ │ │ └── userController.ts
│ │ ├── middleware
│ │ │ └── authMiddleware.ts
│ │ ├── routes
│ │ │ ├── authRoutes.ts
│ │ │ ├── productRoutes.ts
│ │ │ ├── orderRoutes.ts
│ │ │ └── userRoutes.ts
│ │ └── types
│ │ └── index.ts
│ ├── app.yaml
│ ├── package.json
│ ├── tsconfig.json
│ └── README.md
- Clone the repository.
- Navigate to the
backend
directory. - Install dependencies using
npm install
. - Set up Firebase configuration in
src/config/firebase.ts
. - Run the application using
npm start
.
To deploy the backend to Google Cloud App Engine, ensure that the app.yaml
file is correctly configured and run the deployment command.
This project is licensed under the MIT License.