GithubHelp home page GithubHelp logo

api-avanzado-agosto-dialer's Introduction

REST API BASE / Node - Mongoose

This project is a REST API BASE. Developed using:

  • Nodejs
  • Express
  • Mongodb
  • Mongoose
  • Babel (ES6+)

Frontend application.

Endpoints

Doc

Install

Requires installing git, nodejs, npm and pm2

Install MongoDB

Create a /etc/yum.repos.d/mongodb-org-4.4.repo file so that you can install MongoDB directly using yum:

vim /etc/yum.repos.d/mongodb-org-4.4.repo
[mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc

Install

sudo yum install -y mongodb-org

Verify that MongoDB has started successfully and enable

sudo systemctl enable mongod
sudo systemctl start mongod
sudo systemctl status mongod

Clone project

cd /opt/
git clone https://github.com/giandiego/API-AVANZADO-AGOSTO-DIALER.git

Edit enviroment variables in /opt/API-AVANZADO-AGOSTO-DIALER/ (changues values)

cp env-example .env

Install Dependencies

cd /opt/API-AVANZADO-AGOSTO-DIALER/
npm install --force
npm run build

Run the Project

In production

npm start

In development

npm run dev

Init pm2

cd /opt/API-AVANZADO-AGOSTO-DIALER/
npm run build
pm2 start dist/index.js --name API-AVANZADO-AGOSTO-DIALER --time
pm2 startup

Remove init script via:

pm2 unstartup systemd

Info

Gian Diego Javes Leccas

api-avanzado-agosto-dialer's People

Contributors

giandiego avatar

Stargazers

 avatar

Watchers

 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.