Skip to content

victormasson/HexagonalArchitecturePokemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexagonal Architecture Pokemon

Tuto from here

Run

  • Cli
cargo run -- --sqlite ./database.sqlite cli
  • Api
cargo run -- --sqlite ./database.sqlite api

Database

Create database

sqlite3 ./database.sqlite

Add tables

pragma foreign_keys = 1;

create table pokemons (
    number integer primary key,
    name text
);

create table types (
    pokemon_number integer,
    name text,
    foreign key (pokemon_number) references pokemons (number) on delete cascade,
    primary key (pokemon_number, name)
);

About

Hexagonal architecture for a Pokemon app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages