Welcome to the Turahan backend repository! This repository contains the codebase for the backend of Turahan built with Hapi.js. Follow the instructions below to set up the project and start development.
- Production: https://turahan.ziakode.com/
- Development: https://turahan-run-rad3c73vaa-et.a.run.app
-
Clone the Repository:
git clone https://github.com/Turahan-CB23-PS003/backend.git cd hapijs-backend
-
Install Dependencies:
npm install
-
Create .env file: Create a new file named
.env
in the root of the project. This file should contain configurations for your database connection. Here's an example:DB_CONNECTION_STRING=your_database_connection_string
- Development Mode:
To run the application in development mode, use the following command:
This will start the server using
npm run start-dev
nodemon
, allowing for automatic restarts when code changes are detected.