/restgistry

Primary LanguageJavaScriptMIT LicenseMIT

Restgistry Gitpod Ready-to-Code

    [+] AUTOR:        Gerardo Junior
    [+] SITE:         https://gerardo-junior.com
    [+] EMAIL:        me@gerardo-junior.com
    [+] GITHUB:       https://github.com/gerardo-junior/restgistry
    [+] TELEGRAM:     @gerardojunior

Come on, do your tests

But what will you need?

Okay, how to put it to up?

First clone of the project

git clone https://github.com/gerardo-junior/restgistry.git
cd restgistry

Copy the configuration file, and edit

cp .env.example .env # and configure!

ready, now you can use ;)

docker-compose up # the first time, it will download the images

*~ Tip: using the docker-compose you can add -d and you can keep with your terminal ~*

To access the api:

Wait for message and open localhost:8080 in your browser to go to /api-doc

To use a cli:

docker-compose exec restgistry node

How can i use the cli?

docker-compose exec restgistry npm run start

Run without docker:

you will need to install:

  • [nodejs]
  • [mysql]

configure .env to local mysql

npm install
npm run start

Troubleshooting

Is the port already used by other services?

edit the file docker-compose.yml

# (...)


  restgistry:
    image: gerardojunior/nodejs:stable
    restart: on-failure
    container_name: restgistry
    command: npm run start
    env_file:
      - .env
    volumes:
      - .:/src
    ports:
      - [any door]:8080
    links:
      - db
    depends_on:
      - db

# (...)

License

This project is licensed under the MIT License - see the LICENSE file for details