Giter Site home page Giter Site logo

nerdmoney's Introduction

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

yarn dev

CLI Tools

npm run generate

This command allows you to rebuild all pages under a specific siteId

e.g

yarn run generate --siteId 11

npm run clear

This command allows you to delete all pages in the pages /themes/default/pages folder.

e.g

yarn run clear --siteId 2

Flags

theme - allows you to pick the theme folder you are building

-- theme default

projectID - allows you to pick the projectID that you are building for. For dev purposes you most likely want to create a project for yourself to build it in.

this can be done by adding a project row to the project table in the database

-- projectId 2

slug - allow you to pick which page you build - you might want to only build one page vs build all of them in the pages folder

--slug mint

Project Structure

If you want to build theme pages and debug them and test them start by looking in the /themes/pages directory Each one of those pages routes to /sites/{project.slug}/{page.slug}

Once you get into these pages you'll see a root parameter. This is what allows you to build page_modules. All these page modules are stored in the page_module table in the database

When rendered each page_module corresponds to a div, img, or anchor tag. A page_module can also correspond to a pre-built component, although it's recommended to avoid using components if at all possible and instead try to build everything with page_modules.

nerdmoney's People

Contributors

jdemig 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.