Coder Social home page Coder Social logo

xlaero's Introduction

xlaero

๐Ÿš€ Setup Guide :)

1. Install Gridsome CLI tool if you don't have

npm install --global @gridsome/cli

2. Get the project running

  1. npm install to install /node_modules folder with all npm packages.
  2. gridsome develop to start a local dev server at http://localhost:8080
  3. Happy coding ๐ŸŽ‰๐Ÿ™Œ

3. Get Strapi running

  1. Navigate to xlaero-cms (or different project name) root directory via the Terminal.
  2. Start Strapi Admin Tool: npm run develop.

4. Quering data from Strapi in Gridsome

  • Use the GraphQL Explorer by opening http://localhost:8080/___graphql. It is helpful to test the output of queries or mutations you want to make.
  • To query data from Strapi using GraphQL, use the prefixes strapi (single entry) and allStrapi (multiple entries). After that, add the API ID of the content type (e.g. service becomes strapiService).
  • Given, you want to query the single entry with the "id": 1 of the content type service, use:
query {
  strapiService(id: 1) {
      name
      id
      description
      image {
        url
      }
  }
}
  • Given, you want to query multiple/all entries of the content type service, use:
query {
  allStrapiService {
    edges {
      node {
          name
          id
          description
          image {
            url
          }
      }
    }
  }
}
  • โš ๏ธ Be aware that changing data in the Strapi admin requires to re-run gridsome (ctrl + c (Mac) and gridsome develop).

โœจ Initial Setup Guide

1. Install Gridsome CLI tool if you don't have

npm install --global @gridsome/cli

2. Create a Gridsome project

  1. gridsome create my-gridsome-site to create a new project.
  2. cd my-gridsome-site to open folder.

3. Get the project running

  • gridsome develop to start a local dev server at http://localhost:8080

4. Setup ESLint + AirBnB

โš ๏ธ For a better developing experience you can install ESLint VSCode Extension. 1.Follow the Getting Started Guide of ESLint to install and init ESLint locally. 2. Answer the questions as follows:

? How would you like to use ESLint? To check syntax, find problems, and enforce code style
? What type of modules does your project use? JavaScript modules (import/export)
? Which framework does your project use? React
? Does your project use TypeScript? No
? Where does your code run? Browser
? How would you like to define a style for your project? Use a popular style guide
? Which style guide do you want to follow? Airbnb: https://github.com/airbnb/javascript
? What format do you want your config file to be in? JavaScript
Checking peerDependencies of eslint-config-airbnb@latest
The config that you've selected requires the following dependencies:

eslint-plugin-react@^7.19.0 eslint-config-airbnb@latest eslint@^5.16.0 || ^6.8.0 eslint-plugin-import@^2.20.1 eslint-plugin-jsx-a11y@^6.2.3 eslint-plugin-react-hooks@^2.5.0 || ^1.7.0
? Would you like to install them now with npm? Yes
  1. Now you should see file called .eslintrc.js in your root project folder.
  2. Done

5. Setup Strapi CMS

  1. Install the @gridsome/source-strapi Plugin: npm install @gridsome/source-strapi --save
  2. Add it to the config file:
export default {
  plugins: [
    {
      use: '@gridsome/source-strapi',
      options: {
        apiURL: 'http://localhost:1337',
        queryLimit: 1000, // Defaults to 100
        contentTypes: ['article', 'user'],
        // Possibility to login with a Strapi user,
        // when content types are not publicly available (optional).
        loginData: {
          identifier: '',
          password: ''
        }
      }
    }
  ]
}
  1. Install Strapi by following the Get Started Guide.
  2. Install Strapi and create a new project: npx create-strapi-app my-project --quickstart.
  3. Complete the form to create the first Administrator user.
  4. If you use GraphQL instead of REST (default), install the GraphQL plugin: npm run strapi install graphql. To test, use the GraphQL Playground under http://localhost:1337/graphql.
  5. Restart your server: npm run develop.

Deployment

  1. Use gridsome build to generate static files in a /dist folder
  2. To deploy the project on Netlify read the Deploy to Netlify Docs.

Roadmap

  1. Inspiration (websites that Tim really likes)
  2. Apply design patterns to Figma web components
  3. Folder Structure
  4. Start coding

Tech Stack

Styleguide

Screendesign

Figma Screendesign xlaero

Design

Lead Design

Collections

Customers and Vendors

Inspiration

xlaero's People

Contributors

lukaskoeller avatar aaronschanz avatar jonathanschiffner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.