Skip to content

sunlaa/train-app

Repository files navigation

Train App 🚞

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.

Team members 🤝

Mentors: Dzmitry Tsiareshchanka and Sergey Fedorov

Developers:

Technical Details 🛠

Deployment

Deploy

The technology stack

Scripts

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

Getting started

Prerequisites

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
    

Project Setup

  1. Clone the Repository
    Start by cloning the project to your local machine:
    git clone https://github.com/sunlaa/train-app.git
    
  2. Install Dependencies
    Install the required dependencies by running:
    npm install
    
  3. Run the Application
    Start the development server to view the application locally:
    npm start
    
    The app will be accessible at http://localhost:4200/.
  4. Running Tests
    To run the test suite with Jest:
    npm test
    
  5. 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.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors