Coder Social home page Coder Social logo

user-api's Introduction

user-api

User Services API

Get Started

  • After clone the project
  • Install dependency by running
npm install
  • Run the app
npm run dev

Testing

Prerequisite

  1. set EXECUTABLE_PHP environment variable in .env file. you can run which php in your console to find it
EXECUTABLE_PHP=/path/to/bin/php
  1. set LARAVEL_PATH environment variable in .env file. need to set fullpath to your laravel project that contain migration
LARAVEL_PATH=/path/to/laravel
  1. you need to create database named "testing" in your Postgresdb
  2. open .env.test file. If you don't have this .env.test file, copy paste from .env
  3. Change these value in .env.test
DB_HOST=localhost
DB_NAME=testing
DB_PASSWORD=<your-postgresql-password>
DB_USERNAME=<your-postgresql-username>
// Add this value if you copy from .env file
DB_SSL=false

Running Test

  1. To run api (integration) testing
npm run test:api

Running with docker

  • make sure you already have .env file (can see the .env.example for some connection to docker services)

Prerequisite

  • Docker
  • Docker compose

Whats in docker-compose.yml

Commands

  1. Start docker-compose
docker-compose up -d
  1. getting into user-api bash console
docker-compose exec user-api bash

user-api's People

Contributors

fajarism avatar n-permana avatar brm-stnd avatar agit26milan avatar usupsuparma-solusi avatar usupsuparma avatar putu-eka-mulyana avatar falhar avatar citrahadi avatar ali-irawan avatar amrilsyaifa avatar dorman99 avatar putu-eka avatar therour avatar firmanjs avatar amrilsolusi avatar bastian-purrer avatar hkevin-sts avatar

Stargazers

Keyth M Citizen  avatar

Watchers

Adam Akbar avatar  avatar Garry Laly avatar  avatar Yusuf Putra Al Azhar avatar Roby Huzwandar avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.