Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dev] Complete walkthrough of setup and how to run code #129

Open
ryanrightmer opened this issue Jan 28, 2021 · 2 comments
Open

[Dev] Complete walkthrough of setup and how to run code #129

ryanrightmer opened this issue Jan 28, 2021 · 2 comments

Comments

@ryanrightmer
Copy link
Collaborator

Description

A more thorough walkthrough end to end that explains how to set everything up, where important resources and documents are located, etc.

Acceptance Criteria

  • High degree of confidence a new developer could get set up with minimal intervention
  • README updates
  • Extra Credit: Film video of setting it up

Who should I contact?

@ryanrightmer @JamesBock @cdpadilla42 @minpat

Size of Ticket

L

@JamesBock
Copy link
Collaborator

Had to install a fresh version of Windows about a week ago so I had to go through setting most of the project again. Adding the steps I took to get Postgres running on Ubuntu for posterity

Create the file repository configuration:

  sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

Import the repository signing key:

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

Update the package lists:

sudo apt-get update

Install the latest version of PostgreSQL.

sudo apt-get -y install postgresql

check if server is running

service postgresql status 

start server

sudo service postgresql start

login to psql as default use 'postgres'

sudo -u postgres psql

replace myPassword with your own password

ALTER USER postgres PASSWORD 'myPassword';

exit postgres...or browse as you'd like

\q

add connection string to appsettings.Development.json

 "LocalSQL": {
	"ConnectionString": "Server=127.0.0.1;Port=5432;Database=tenant_file;User Id=postgres;Password=<YourUpdatedPassword>;"
},

@rixong
Copy link
Collaborator

rixong commented Feb 16, 2021

Client - Update gql schema from API. Generate query types

Apollo CLI has methods for regenerating graphql-schema.json file from current API and generating TS Types for new and current GQL queries:

Update graphql-schema.json (from_ within tenant-file/portal-app folder):
apollo client:download-schema graphql-schema.json --endpoint=https://api.dev.tenantfile.org/graphql

Update QGL Types (stored in src/types):
npm run generate

  • Types are generated using the API schema (graphql-schema.json) and coded queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants