Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

An application where you can see real estate with the option to buy it

License

Notifications You must be signed in to change notification settings

la-haus/offline-test-frontend-alver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Real Estates 👋

License: MIT License Coveralls Documentation Maintenance Twitter: 23Alver

An application where you can see real estate with the option to buy it

Demo

Before you begin, ensure you have met the following requirements:

Install

To install real estates app, follow these steps:

  • Clone the source locally:
    $ git clone https://github.com/Alver23/real-estates.git <project-name>
    $ cd <project-name>
  • Installing dependencies:
    $ npm i

Usage

  • Enter the project folder:

    $ cd <project-name>
  • Mode: development

    $ npm run start
  • Mode: production

    $ npm run build
    $ npm install -g serve
    $ serve -s build -l 4000

Running the tests ⚙️

Running unit tests 🔩

The unit test in the app is configuring only to test the logic, not e2e, to generate a test file, only is necessary to add this in <project-name>/src/**/__tests__/ for other withe the format <name>.spec.{ts, tsx}.

$ npm test

Note: If you want exclude or modify test configuration, apply this change in jest.config.js

Running linter 🖋

The project work with ESlint configuration using Prettier as rules template.

$ npm run lint && npm run stylelint

Running Sonarqube

This tool allow run analysis of the project code and check if developer apply best practices and haven't any vulnerabilities in this using Typescript.

Before running this process it is necessary to configure the following environment variables in /.env file:

SONARQUBE_HOST_URL=<Sonarqube URL>
SONARQUBE_TOKEN=<Sonarqube Token>

Run analysis

$ npm run sonarqube

Built with 🛠️

Author

👤 Alver Grisales Ortega

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 Alver Grisales Ortega.
This project is MIT License licensed.


This README was generated with ❤️ by readme-md-generator

About

An application where you can see real estate with the option to buy it

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 98.1%
  • TypeScript 1.6%
  • Other 0.3%