Git Product home page Git Product logo

angular-nest-tulsa's Introduction

Tulsa Remote Application

Install

The project is divided into frontend (client) and backend (server).

Install frontend:

cd client
npm install

Install backend:

cd server
npm install
cp .env.default .env

Note: The server expects a local instance of MongoDB running.

Upon first npm start in server directory, a default admin user will be created with the following login credentials: email: [email protected] password: admin1234

Run

Run npm start in both the client and server directories.

Production Build

Prep:

  • Increment versions in client/server's package.json
  • Commit on master
  • Checkout dist
  • Merge in master

Client Build:

  • Run ng build --prod from client/
  • Run git add -f dist/ from client # We have dist/ inside of .gitignore, so we need the force flag

Server Build:

  • Run nest build from server/
  • Run git add -f dist/ from server # We have dist/ inside of .gitignore, so we need the force flag

Commit and Push

  • `git commit -m "Dist build of v${insert-version-here}"
  • git push

Production Deployment

From the AWS server (ssh tr.gitwit.com):

  • cd /apps/tulsa-remote-live # Probably should deploy to staging first
  • git pull
  • pm2 list
  • pm2 restart X # X is the instance number from above
  • TEST THAT IS WORKED

Rename files/contents

find . -type f -exec rename 's/product/application-response/' {} \;
find . -type f -exec sed -i 's/product/applicationResponse/g' {} \;
find . -type f -exec sed -i 's/Product/ApplicationResponse/g' {} \;

angular-nest-tulsa's People

Contributors

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