This project aims to automate the process of logging in to various partner websites for a travel company. The application has two main roles: Admin and Agent. Admins can manage partner credentials, while agents can log in to partner websites without seeing the credentials.
Clone the repository:
git clone https://github.com/yourusername/travel-company-automation.git
cd travel-company-automation/backend
Install dependencies:
npm install
Create .env
file:
touch .env
Add the following content to .env
:
DATABASE_URL=your_postgresql_connection_string
JWT_SECRET=your_jwt_secret
PORT=5000
Run the server:
npm start
Navigate to the frontend directory:
cd ../frontend
Install dependencies:
npm install
Run the frontend server:
npm start
Register as an Admin:
POST http://localhost:5000/api/auth/register
{
"username": "admin",
"password": "password",
"role": "admin"
}