Skip to content

abalestra22/jared-backend

 
 

Repository files navigation

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:

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!"
    }
}

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.3%
  • HTML 26.2%
  • Dockerfile 0.5%