Coder Social home page Coder Social logo

ismetkizgin / solvents-api-node.js Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 370 KB

Home Page: https://solvent-api.herokuapp.com/

License: GNU General Public License v3.0

JavaScript 48.88% CSS 27.87% HTML 22.83% Dockerfile 0.43%
nodejs solvent countdown word solver solver-api

solvents-api-node.js's Introduction

Solvents API Project

Deploy methods of Solvents REST API project are given below.

Project Publishing Instructions

The project can be published in two different ways.

  • Docker
  • NPM

Installation with Docker

To publish the project on Docker, go to the project directory and write the following codes;


  # deploy project with docker
  $ docker-compose up

  # install docker database backup
  $ cat <sql_filename> | docker exec -i <container_name> mysql -u root --password=root <database_name>

  # compile docker files
  $ docker-compose build
  

Installation with NPM

To publish the project in NPM, go to the project directory and write the following codes;


  # package install
  $ npm install

  # project start
  $ npm start
  

Running the Project as a Developer

As a developer, to start the project and do the test operations, first go to the project directory and install the packages, then give the necessary command to start the mode.


  # package install
  $ npm install

  # project start
  $ npm run start:dev
  

http://localhost:5000/wordsolver -> GET

REQ

{
    "letters": "m,e,k,t,u,a,g,y"
}

RES

{
    "word": "MUKTEZA",
    "score": 9
}

http://localhost:5000/countdownsolver -> GET

REQ

{
    "number": "2,4,5,7,5,50",
    "targer": 425
}

RES

{
    "result": "50 * 4 * 2 = 400</br>5 * 5 = 25</br>400 + 25 = 425</br>",
    "score": 9
}

solvents-api-node.js's People

Contributors

cankadirkarademir avatar ismetkizgin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.