prisma site builder in angular - AndySouthwick/prisma-site-builder GitHub Wiki
- Clone the project
- NPM Install
npm install -g prismadocker-compose up -dprisma deployprisma generate-
node index.jsornodemon index.js
I'm taking some liberties believing that you have node installed.
After the project is running create a user on the gql query GUI
- got to localhost:4000
- run this mutation in the GUI
mutation{ createUser(name: "<NAME OF USER>" email: "<EMAIL FOR USER>" hashed: "<PWD>){ id } }
- Copy the created user id and navigate to the page service in the Angular project and paste in as the id variable in the createNewPage function
createNewPage (title): Observable<any> { return this.apollo.mutate({ mutation: this.createPage, variables: { title: title, ** id: 'cjygedbef001k0847vi3jd2yx'** } }).pipe(map(({data}) => data)); }
- Navigate to the localhost:4200/dashboard or the port your Angular app is running on
- Create a page