/booklesson-api-rest

A music lesson booking REST API built with NestJS.

Primary LanguageTypeScript

BookLesson API (REST)

joshcummingsdesign

A music lesson booking REST API built with NestJS.

Documentation

Check out the API documentation.

Requirements

  • Node ^13.12.0
  • Yarn ^1.22.4

Getting Started

  1. Install the project dependencies

    yarn
    
  2. Copy .env.example to .env and make sure to export the variables to your environment

    cp .env.example .env
    
  3. Export the test keys

     export JWT_PRIVATE_KEY=`cat test/keys/private.pem`
     export JWT_PUBLIC_KEY=`cat test/keys/public.pem`
    
  4. Start the Docker services

    docker-compose -f docker/docker-compose.yaml up
    
  5. Run the database provisioning script

    ./test/scripts/provision-database.sh
    
  6. Start the local development server

    yarn start:dev