Skip to content

This repository cont an API to manage SCHOOL. It will collaborate with a front-end build in Angular

Notifications You must be signed in to change notification settings

sidofdountio/sekou-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sekou-api


This repository content the API of Sekou API


If you want to run Junit Test

Junit test

Open the app with any IDE and run Junit test method or run following command

Make sure to be in the app current directory

  • $ mvn test -X

HOW TO RUN THE API


Requirement

  • Docker version 24.0.7
  • Docker compose v2
  • Optional Docker compose v1

Install or Run step

Make sure you are on main directory of the app

    To create database image based on Postgres

  1. $ docker compose up -d
  2. Optional if you have docker compose v1 instead of v2

  3. $ docker-compose up -d optional
  4. Now Create the database named dbsekou

  5. $ docker exec -it postgre-sekou-db bash
  6. Execute and Access the database on iterative mode

  7. $ psql -U sidof
  8. You are now on the DATABASE

  9. $ CREATE DATABASE dbsekou;
  10. The database it now created. you can the following command to see it

  11. $ \l
  12. You will be able to see the database on list.

    Exit.

    Now let run the api using maven

  13. $ mvn spring-boot:run
  14. At this step the app it's running


The end point

You can use Postman or any Test api you like

  1. http://localhost:8086/api/v1/beco-sekou

About

This repository cont an API to manage SCHOOL. It will collaborate with a front-end build in Angular

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published