GithubHelp home page GithubHelp logo

marvel-catalog's Introduction

MarvelCatalog

This project it's using:

Features

  • Comic list
  • Character list
  • Comic details
  • Filters

Project structure

The structure of this project it's based on folder-by-feature and you will be able see some advantages bellow (try to take a look in the project structure first).

  • src/
    • app/
      • core/
      • character/
      • comic/
      • shared/
        • component/
        • constant/
        • interface/
        • utils/
  • assests/
    • fonts/
  • environments/

In a structure like that you will easily indentify the systeam features and easily find a features files (e.g when you have a problem in a feature), just with files names you are able to know what that file contains (e.g .spec will have tests), all your features code will be separeted and organized (e.g each feature being a module), make it easy the lazy loading strategy, etc. You can read more about LIFT guidelines and folder-by-feature

How to run

Since this project use the Marvel API, you have to follow some steps before run the application:

  1. Sign in on Marvel API
  2. Allow your domain to acess the API (if you are using localhost you also have to allow it)
In case you are running local
  1. Create a new environment.local.ts on src\environments folder with the following structure:
export const environment = {
  production: false,
  marvelPublicKey: 'YOUR_PUBLIC_MARVEL_API'
};
  1. Just run using npm run start:hmr or ng serve --configuration=local
In case you are running in a server
  1. You will have to setup your public Marvel API in you enviroment
  2. Create a script or use the envConfig.js, on root folder, to fill the marvelPublicKey on Angular enviroment file with YOUR public Marvel API 6.1. The environment.prod.ts is already setup with a marvelPublicKey: '$API_KEY'
  3. Deploy it 7.1. Take a look on Heroku

Tests

  • 100% .ts file coverage with unitary tests
  • Componet tests just to the main flow

Running tests

  • npm run test to generate code coverage
    • open coverage\marvel-catalog\index.html to see the coverage
  • ng test just run all the tests

marvel-catalog's People

Contributors

evando16 avatar

Stargazers

dRocha avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.