Coder Social home page Coder Social logo

dektol's Introduction

dektol ๐ŸŽž

a simple photography portfolio website maker

system dependencies

name min. version
node 16.0.0
yarn 1.0.0

simple cms setup + downloading the project + running

this project uses prismic as itโ€™s data source.

prismic provides a way to clone the project and upload the custom type definitions contained on this github repository with a single command:

$ npx prismic-cli theme https://github.com/vitordino/dektol --conf .prismic.json

the command above will prompt you to login/register on prismic, and then it will:

  1. create a repository with the chosen subdomain
  2. upload the custom types
  3. download the project files (contained on this github repo)
  4. install the dependencies

after this is done, certify your terminal is on the right folder, then you can run the project locally:

# to start a development server
$ yarn dev

# to build the static site
$ yarn build # outputs to ./dist directory

advanced cms setup: protected content api

by default, prismic will start your content under a "public api for master only" so all your content is queryable across the interwebs without any gate.

if you wish to hide this content from other people, youโ€™ll need to change the setting on prismic repo settings โ†’ api & security โ†’ content api โ†’ repository security

then you will need to add a PRISMIC_TOKEN on your .env file for the project access the newly secured api.

you can get this token by using the generate an access token section on the same page, it should give you a permanent access token.

advanced cms setup: custom types

if you wish to develop your own prismic custom types to extend the website content capabilities, itโ€™s handy to use a script to download the jsons and automatically generate itโ€™s typescript counterparts.

for this, youโ€™ll need to provide a PRISMIC_TYPES_TOKEN on your .env file.

you can get this token by clicking prismic repo settings โ†’ api & security โ†’ custom types api and filling in the generate a new token form.

then copy the resulting token and paste it on the .env file.

commit standard

this repo follows the gitmoji specification, and enforce it with a custom git-hook.

if you want to contribute to it, make sure youโ€™re following it.

dektol's People

Contributors

vitordino avatar dlbnco 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.