This project is a web-based platform designed to manage train trips. It includes role-based access for anonymous users, authorized users, and resource managers, each with unique responsibilities. The platform enables streamlined scheduling, booking, and trip management. The project is designed as a final part of the Angular course from RS School.
Mentors: Dzmitry Tsiareshchanka and Sergey Fedorov
Developers:
| Script | Description |
|---|---|
start |
Runs the Angular development server for local development with live reloading |
build |
Compiles the Angular project into production bundle |
watch |
Continuously builds the project in development mode, detecting changes |
lint |
Lints the project files according to coding standards and configuration |
prettier |
Formats the code files using Prettier to ensure a consistent style |
prepare |
Initializes Husky to manage Git hooks |
test |
Runs the test suite using Jest to verify the correctness of the application |
test:watch |
Runs Jest in watch mode, rerunning tests when files change |
test:coverage |
Generates a code coverage report to show how much of the code is tested |
Before you begin, ensure you have the following installed:
- Node.js and npm
You can download it from Node.js official site - Angular CLI
Install globally with the following command:npm install -g @angular/cli
- Clone the Repository
Start by cloning the project to your local machine:git clone https://github.com/sunlaa/train-app.git - Install Dependencies
Install the required dependencies by running:npm install - Run the Application
Start the development server to view the application locally:The app will be accessible atnpm starthttp://localhost:4200/. - Running Tests
To run the test suite with Jest:npm test - Build for Production
To create a production build:npm run build
Additional Commands
Refer to the Scripts section above for more commands you can run.