Skip to content

TolotraMandresy/Digital-Library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digital library

Task

Task Contributors Status
authentification Tahiry, Tolotra done
user related operations Tahiry done
CRUD Book Tolotra done
CRUD Category, pagination system to get book by category Tolotra done
Create, Read, Delete Author, pagination system to get book by category Tolotra done
Landing book system pending
Front signin, login Aina pending
 

Installation and initialization

  • run this command cd ./api then npm i to install all dependencies
  • create a file named ".env" inside the api folder.
  • put these info inside this file:
DB_NAME= digital_library
DB_USER= Replace_this_ith_your_postgres_username
DB_PSWRD= Replace_this_with_your_postgres_Mdp
PORT= Replace_the_port_address_where_the_server_gonna_be_launched
JWT_SECRET= key

NB: Those values that you gonna replace don't need to be inside quotes or double quotes

  • create a "public" folder in "api"
  • in thtat "public" folder, create a "bookPictures"
  • in thtat "public" folder, create a "authorPictures"

NB: If those file and folder aren't named as said, you may face some problem

  • npm run migration:run to run migration that create a administrator that have access to all modification to the database.
  • npm run dev to launch production version of the backend of this project
     
      Click here to 👉view API documentation👈

The "digital_library.postman_collection.json" as the same level as this readme file can be imported and used in "Postman Canary" to help test this API.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.5%
  • CSS 5.5%
  • HTML 2.0%