Iniciando o sistema - Paradigmas-2-2017/contact-book GitHub Wiki

Iniciando o sistema

  1. Clonar o repositório:

username ~/workspace $ git clone https://github.com/Paradigmas-2-2017/contact-book.git

Cloning into 'contact-book'...

  1. Entrar no diretório:

username ~/workspace $ cd contact-book/

username ~/workspace/contact-book $

  1. Criar o diretório "database":

username ~/workspace/contact-book $ mkdir database

username ~/workspace/contact-book $ ls

database LICENSE README.md system

  1. Entrar no diretório "/system":

username ~/workspace/contact-book $ cd system/

username ~/workspace/contact-book/system $

  1. Iniciar o GHCi, ambiente interativo do GHC:

username ~/workspace/contact-book/system $ ghci

GHCi, version 8.0.2: http://www.haskell.org/ghc/ :? for help

Prelude>

  1. Carregar o módulo principal do sistema:

Prelude> :load Main.hs

[1 of 5] Compiling ModelData ( ModelData.hs, interpreted )

[2 of 5] Compiling File ( File.hs, interpreted )

[3 of 5] Compiling Crud ( Crud.hs, interpreted )

[4 of 5] Compiling Menu ( Menu.hs, interpreted )

[5 of 5] Compiling Main ( Main.hs, interpreted )

Ok, modules loaded: Crud, File, Main, Menu, ModelData.

*Main>

  1. Iniciar o sistema executando a função principal:

*Main> main