Giter Club home page Giter Club logo

hgnrest's Introduction

HGNRest

npm install to install the dependencies. npm start to run the application

To get started, make sure you have:

  1. Node v9.5 or higher installed on your machine.
  2. A decent code editor like VS Code or Atom.
  3. Git

Step1: Clone the App To clone the code, navigate to the source directory where you want to maintain the code and via terminal or GUI of your choice, run : git clone https://github.com/OneCommunityGlobal/HGNRest.git . You can also setup SSH and then use that for working with remote.

Step2: Run npm install. Best way is to open the code in the editor and open integrated teminal. Run npm install.

Step3: If running on MacOS or Linux, run npm run prepare-macos-linux. This will install husky and allow integration with git hooks. Windows users don't need and should not run this command.

Step4: Start the app: To start the app, you need to set up several process.env variables. These variables are:
user=
password=
cluster=
dbName=
replicaSetName=
SentryDSN_URL=
SMTPDomain=
SMTPPass=
SMTPPort=
SMTPUser=
TOKEN_LIFETIME=
TOKEN_LIFETIME_UNITS=<unit like days, second, hours etc>
JWT_SECRET=

To make the process easy create a .env file and put the above text in the file and replace values with the correct values, which you can get from your teammates. Then do an npm run-script build followed by an npm start. By default, the services will start on port 4500 and you can http://localhost:4500/api/ to access the methods. A tools like Postman will be your best friend here, you will need to have an auth token placed in the 'Authorization' header which you can get through the networking tab of the local frontend when you login.

  • npm run lint -- fix lint
  • npm run build -- build src server and save in dist
  • npm run buildw -- auto rebuild upon change of src
  • npm run start -- run the server in dist
  • npm run serve -- run the server in src without build
  • npm run dev -- run the server in src and auto restart upon change of src

Note: Once you check in the code in github, the application will be publsihed to the following: Developement : https://hgn-rest-dev.herokuapp.com Master: https://hgn-rest.azurewebsites.net/

BIG THANKS

Other key touchpoints:

Build and hosting: Azure and Heroku Monitoring and logging: Sentry.io

hgnrest's People

Contributors

one-community avatar shubmittal avatar chrisweilacker avatar tdkent avatar abdel-lall avatar ptrpengdev avatar diegosalas27 avatar lucas-e avatar wang9hu avatar ariayu927 avatar nathanah avatar vnseattle avatar abi-liu avatar vishala09 avatar xaanders avatar cameronwhiteufl avatar sucheta90 avatar ramyaram2092 avatar lunaliar avatar getnithesh avatar sowmyamanohar avatar eviantan avatar shiwani99 avatar navneeeth avatar zhangwen829 avatar jerryren527 avatar aishwaryak01 avatar cameronwhitecs avatar dependabot[bot] avatar lacnoskillz 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.