Sales Vista is a web application designed to streamline sales entry processes. It provides features for users to log in, register, add sales, view today's top sales, and access all sales data. The project is built using a combination of backend and frontend technologies to ensure a smooth user experience.
- Node.js
- Express.js
- JSON Web Tokens (JWT) for authentication
- CORS for cross-origin resource sharing
- Joi for input validation
- Joi-password-complexity for enforcing password complexity rules
- Bcrypt for password hashing
- Mongoose for MongoDB object modeling
- React.js
- Tailwind CSS for styling
- Material UI for UI components
- User Authentication: Users can register and log in securely using JWT authentication.
- Sales Entry: Users can add sales data efficiently, providing necessary details.
- Today's Top Sale: View the top sale of the day at a glance.
- All Sales: Access all sales data for analysis and reporting.
The project structure is organized to maintain clarity and modularity:
- Backend: Contains all server-side code.
- Routes: Manages routing for different API endpoints.
- Models: Defines MongoDB schemas and models.
- Frontend: Houses all client-side code.
- Components: Contains reusable React components.
- Pages: Manages routing and navigation within the application.
- Clone the repository.
- Navigate to the backend directory and run
npm install
to install backend dependencies. - Set up a MongoDB database and update the connection string in the backend configuration.
- Run
npm start
to start the backend server. - Navigate to the frontend directory and run
npm install
to install frontend dependencies. - Run
npm start
to start the frontend server. - Access the application in your web browser at the specified address.