Skip to content

Commit

Permalink
chore: new arch
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaSMorato committed Feb 3, 2023
1 parent b1d1b51 commit 8156d48
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/api/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const API_BASE_URL = 'https://pokeapi.co/api/v2';

class PokemonApi {
async get(url) {


}
}

module.exports = PokemonApi;
File renamed without changes.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const App = require("./app");

const app = new App();
app.createServer();
Empty file removed src/repository/.gitkeep
Empty file.
9 changes: 9 additions & 0 deletions src/repository/pokemonRepository.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const PokemonApi = require('../api');

class PokemonRepository {
constructor() {
this.api = new PokemonApi();
}
}

module.exports = PokemonRepository;
Empty file removed src/service/.gitkeep
Empty file.
7 changes: 7 additions & 0 deletions src/service/pokemonService.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class PokemonService {
constructor({ repository }) {
this.repository = repository;
}
}

module.exports = PokemonService;

0 comments on commit 8156d48

Please sign in to comment.