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 npm start
in both the client
and server
directories.
- Increment versions in client/server's package.json
- Commit on
master
- Checkout
dist
- Merge in
master
- Run
ng build --prod
fromclient/
- Run
git add -f dist/
fromclient
# We havedist/
inside of .gitignore, so we need the force flag
- Run
nest build
fromserver/
- Run
git add -f dist/
fromserver
# We havedist/
inside of .gitignore, so we need the force flag
- `git commit -m "Dist build of v${insert-version-here}"
git push
From the AWS server (ssh tr.gitwit.com
):
cd /apps/tulsa-remote-live
# Probably should deploy to staging firstgit pull
pm2 list
pm2 restart X
# X is the instance number from above- TEST THAT IS WORKED
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' {} \;