Coder Social home page Coder Social logo

dev.tezos.com's Introduction

dev.tezos.com

This project is a site for the dev portal for Tezos.com. It used as a tutorial hub for various topics related to Tezos.

Development

Quickstart

  1. Clone the repository

git clone [email protected]:tacoinfra/dev.tezos.com

  1. Change directory into our clone and install our dependencies

cd dev.tezos.com && npm install

  1. Start the development environment using the dev script in package.json

npm start

Your live server should now be running at http://localhost:8000 You should also have a tool for querying data at http://localhost:8000/___graphql

Notes

Localization

The application is configured to be able to use i18n, but not fully complete. Production only has plans to use English initially. When we're ready to implement more languages, Gatsby already has the i18n plugin installed and ready. To use that, you simply add the locale key to the file extension. So if you have a tutorial called my-tutorial.md and a page called my-tutorials.js, you would simply add .de before .js to make a German version (my-tutorial.de.md & my-tutorials.de.js).

Currently, the React part of the application has no configured way to "change" the language. To view your alternate language versions of pages/posts, you simply need to append the language key to the url before the slug.

Example: If your post URL is https://www.example.com/tutorials/my-tutorial/ then the German version (as long as you have the file in the repo) should exist at https://www.example.com/tutorials/*de*/my-tutorial

Installation

To install the dependencies run npm install

Building

To get a production-ready build run npm run build

  • This will create a folder of your compiled code and assets called public in the root directory

Deploying

To deploy your production-ready build, run npm run deploy

  • This will deploy the public directory you created in the build step to the gh-pages branch in the repo

Reference to the Gatsby Tutorial link

dev.tezos.com's People

Watchers

James Cloos 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.