Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Getting Started

OmriMaorRPI edited this page Dec 9, 2022 · 6 revisions

If you're wondering about how to get started, you're in the right place!

Download the GitHub sign-in tool:

wget https://github.com/cli/cli/releases/download/v2.18.1/gh_2.18.1_linux_amd64.tar.gz

Once Git is installed, to configure your username and email use:

git config --global user.email "[YOUR EMAIL]"

git config --global user.name "[YOUR NAME]"

Config

Start the local server:

NODE_TLS_REJECT_UNAUTHORIZED=0 meteor --settings settings.json

Terminal node

Switch to the demo CAS server locally

  1. Change loginUrl to https://django-cas-ng-demo-server.herokuapp.com/cas/login
  2. Change baseUrl to https://django-cas-ng-demo-server.herokuapp.com/cas

Demo CAS credentials:

Username: admin

Password: django-cas-ng

Start a remote terminal on the production server:

ssh -p 2222 [Your RCS ID]@srv1.webtech.union.rpi.edu

Example: ssh -p 2222 [email protected]

When prompted to continue, type 'Y' and hit enter ssh

Set up production deployment:

git remote add production ssh://[email protected]:2222/petitions

Make sure to run git pull before making code changes. That command ensures that you’re working with the latest version of the code from GitHub. Here’s the general workflow:

  1. git fetch
  2. git pull
  3. Make your changes
  4. git add .
  5. git commit -m "[Your commit message here]"
  6. git push origin master OR
  7. git push production master

Push Production

OR

fetch pull push

(Local Development)

Install Meteor. Copy settings.json.sample to settings.json and edit appropriately. All properties defined in settings.json.sample are required. From the root directory, run meteor --settings settings.json.

Usage (Production Environment)

Check out the node section of the config repository for example systemd files and nginx configuration files.

For creating an admin user for mongo, read Section 1.2 of this article.