Skip to content

ellcreative/craft-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#REPONAME In order to spin up this repo, you need to spin up both the back end and the front end.

On First Clone

  1. Clone the repo
  2. Make sure to git checkout develop or TODO: replace this with info about our git standard stuff.

BACKEND Setup

  1. cd to backend
  2. nitro add Enter the hostname [backend.nitro]: api-REPONAME.nitro Enter the web root for the site [web]: Choose a PHP version:
  3. 8.0
  4. 7.4
  5. 7.3
  6. 7.2
  7. 7.1
  8. 7.0 Enter your selection: 3 Add a database for the site [Y/n] y Select the database engine:
  9. mysql-5.7-3306.database.nitro
  10. postgres-13-5432.database.nitro Enter your selection: 1 Enter the new database name: REPONAME_db_dev Should we update the env file? [y/N] n Apply changes now [Y/n]? y
  11. nitro composer install

FRONTEND Setup

  1. cd to frontend
  2. copy the contents of .env.example to a new file, .env
  3. update or double check the following lines:
    GRAPHQL_URL=http://api-craftvue.nitro
    BACKEND_URL=http://api-craftvue.nitro
    
  4. Login to http://api-craftvue.nitro/admin with the login from onepass.
  5. copy the contents of .graphqlconfig.example to a new file, .graphqlconfig
  6. Get graphql token (You don't need "Authorization: Bearer", just the alphanumeric code)\
  7. Add to: .env and .graphqlconfig
  8. yarn

On Pull

When you pull, if anything has changed (new packages added, etc) remember to run nitro composer install and yarn to grab any new or updated packages. This will happen automatically if you are using PHPStorm and it is properly configured. Yarn is for frontend, composer is for backend.

Backup DB

  1. Navigate to Utilities/Database Backup.
  2. Click Backup Button.
  3. Add the new file (in backend/storage/backups) to git.

Restore DB

https://craftcms.com/docs/nitro/2.x/importing.html

Local Dev

While developing locally run:

  1. yarn dev

Building

You can build the files for dist with:

  1. yarn build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published