ranaprabal / airtribe

Airtribe Backend Assessement Submission by Prabal Pratap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Airtribe Assessment

Airtribe Backend Assessment submission by Prabal Pratap

Table of Contents

Technologies Used

Backend: Node.js, Express, Sequelise

Containerization && Database: Docker, Postgres

Authentication : JWT (JSON Web Token)

Prerequisites

Docker Desktop for running the container

Postman for backend api testing

Installation

  • Method 1: Using Docker

Just only Download the Docker Compose File

Create a .env file in the root of directory and add the following variables:

PORT = "5000" // this port are mapped to docker
DB_NAME = "airtribe" // or your own name
DB_USERNAME = "postgres" // keep the default username ("postgres") otherwise have to change username in the container manually
DB_PASSWORD = "123456" // or your own password but remember the password
DB_PORT = "5432" // this db port is mapped
DB_HOST = db // keep the same db host
JWT_SECRET_KEY = "your_JWT_secretKey" // or your own jwt secret key

up the compose File

docker-compose up
  • Method 2: Using Github

Clone the repo:

git clone https://github.com/ranaprabal/airtribe.git

Create a .env file in the root of directory and add the following variables:

PORT = "5000" // this port are mapped to docker
DB_NAME = "airtribe" // or your own name
DB_USERNAME = "postgres" // keep the default username ("postgres") otherwise have to change username in the container manually
DB_PASSWORD = "123456" // or your own password but remember the password
DB_PORT = "5432" // this db port is mapped
DB_HOST = db // keep the same db host
JWT_SECRET_KEY = "your_JWT_secretKey" // or your own jwt secret key

Install dependencies:

npm i

About

Airtribe Backend Assessement Submission by Prabal Pratap


Languages

Language:JavaScript 99.4%Language:Dockerfile 0.6%