Skip to content

GrayYeung/Nuxt_Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nuxt Template

This is a Nuxt template project setup with below functions / library:

  • Nuxt - Composition API
  • Nuxt - Vuex Store
  • Vuex Persist
  • Typescript
  • Tailwindcss
  • MongoDB
  • Apollo Graphql Server
  • Apollo Graphql Client
  • Proxy
  • Vercel (Deployment)

Dependency Setup

# create database
$ docker-compose up -d

# install dependencies
$ yarn

# generate GraphQL
$ yarn graphql

# create .env (If env file does not exist)
$ cp .env.example .env

Deployment (Vercel)

  1. install Vercel CLI
  2. run vercel in the project (if need env variable, set at vercel.json)
  3. connect to your vercel workspace

Potential Issue

# to fix mongoDB not master
$ sh fix-mongo-not-master.sh

Development Tips

# to build a global style from tailwindCSS as plugin
$ npx tailwindcss build ./assets/css/main.css -o tailwindcss.generated.css

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors