Giter Site home page Giter Site logo

jared-backend's Introduction

README

The Jared Project: Jared is an ERP system for handling employees, customers other ERP features related with software companies.

Jared Back-End installation steps

How to install:

  • Install NodeJS (If not already installed)

  • Clone the Jared Back-End git repository

  • $ npm install

  • sudo apt-get update

  • Set up docker repository:

    sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common

  • Add Docker’s official GPG key: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

  • Install Docker:

    sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"

  • sudo apt-get update

  • sudo apt-get install docker-ce

  • Test: sudo docker run hello-world

  • Go to jared backend folder and run “docker-compose build”

  • Go to jared backend folder and run “npm run docker-up”

  • To work with the automatic update of your changes, you must change the execution script in package.json, replace "node app.js" for "nodemon app.js"

Git workflow

  1. Update to the latest version of master - $ git checkout master && git pull
  2. Create a new branch for working on the issue 2.1 $ git checkout -b features/<#issue_number>-<name> (If it's a new feature) 2.2 $ git checkout -b bug_fixing/<#issue_number>-<name> (If it's a bug)
  3. Commit locally as you need - $ git commit -m 'bla bla'
  4. Update your branch against master - $ git fetch origin && git rebase origin master
  5. Push your branch to github - $ git push origin <branch-name>
  6. Create a Pull request and assign a reviewer

Heroku deployment:

  • If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key. $ heroku login
  • Log in to Container Registry. You must have Docker set up locally to continue. You should see output when you run this command. $ docker ps
  • Now you can sign into Container Registry. $ heroku container:login
  • Deploy your Docker-based app. Build the Dockerfile in the current directory and push the Docker image to deploy the app.
    1. Build the docker image: $ cd server && docker build -t jared-backend .
    2. Push the image to heroku: $ heroku container:push web -a jared-backend

API endpoint remote url:

Jared API Endpoints:

} ```

req =  {
	"id": "5a8436b7a1af260010767191",
 }

{
    "status": 200,
    "errorInfo": "",
    "data": {
        "message": "User deleted!"
    }
}
req =  {
	"id": "5a8436b7a1af260010767191",
    "username": "aarias"
 }
resp =
{
    "status": 200,
    "errorInfo": "",
    "data": {
        "message": "User updated!"
    }
}

jared-backend's People

Contributors

matiassequeira avatar rodrigoargeniss avatar jchiavaro avatar msantang78 avatar sgarcia2411 avatar

Watchers

Marcelo 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.