Welcome to the Employee Management App, an Angular-based application designed for efficiently managing employee data. This application leverages GraphQL for seamless data fetching and provides a user-friendly interface for performing various employee-related operations.
- User Authentication: Secure login and signup functionality.
- Employee Management: Add, view, update, and delete employee records.
- Session Management: Uses local storage for session persistence.
- Responsive Design: Adaptable UI for different screen sizes.
To run this application locally, follow these steps:
- Node.js
- MongoDB
- Angular CLI
- Clone the Repository
git clone https://github.com/alialoraebi/101386021_comp3133_assig2- Navigate to the Project Directory
cd 101386021_comp3133_assig2
- Install Dependencies
npm installCreate a .env file in the project root. Add the following environment variables:
PASSWORD=<Your MongoDB Password>
JWT_SECRET=<Your JWT Secret>To generate a JWT secret, you can use the terminal:
node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"Replace <Your MongoDB Password> and <Your JWT Secret> with your actual MongoDB password and the generated JWT secret.
Start the Angular Server
ng serveor
ng serve --openOpen your browser and navigate to http://localhost:4200.
The application is designed to be deployable on platforms like Heroku, Vercel, or Cyclic. Please refer to the respective documentation of these platforms for deployment instructions.