Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.2 KB

README.md

File metadata and controls

48 lines (37 loc) · 1.2 KB

book-gallery-api

A simple authentication API for the books gallery app

Core Technologies

  1. NodeJS/Express
  2. Postgres/Sequelize ORM

To get started

  1. Clone the repository:

    git clone https://github.com/she-code-africa/WOSCA-book-gallery-api
    
  2. Ensure you have installed NodeJS and Postgres

  3. Navigate into the app's root directory:

    cd WOSCA-book-gallery-api
    

Database Setup

  1. Create a Postgres database for your local development with any name of your choice.

  2. Create a .env file in the root directory by copying the sample file and updating the database variables with your connection credentials, as well as the JWT signing secret.

  3. Globally install sequelize cli

      npm install -g sequelize-cli
    
  4. Run migrations

      sequelize db:migrate
    

Development

  1. Install all dependencies:

      npm install
    
  2. Install all dependencies:

      npm run start:dev
    

Contributing

Refer to the contribution guidelines for this project here