Coder Social home page Coder Social logo

frontendista.cz's Introduction

⚠️ This project is archived as it was moved to frontendista.cz monorepo. ⚠️

frontendista.cz

1. Installation

1.1 Prerequisites

  • node.js (lts) runtime
  • pnpm package manager (not exclusive, but preferred)

1.1.1 Hosts file configuration

By default app tries to run via host local.frontendista.cz on port 80.

To make this work you need to modify hosts file on your system. Add line below to your hosts file.

127.0.0.1       local.frontendista.cz

You can find location of your hosts file here.

1.2 Environment variables

1.2.1 Functionality variables

Name Value Required
SANITY_GRAPHQL_ENDPOINT https://<PROJECT_ID>.api.sanity.io/v1/graphql/<DATASET_ID>/default
SANITY_CLIENT_TOKEN hidden
SANITY_PROJECT_ID hidden
SANITY_DATASET_ID development or production
NEXT_PUBLIC_DISCORD_CONTACT_WORKER_URL hidden

1.2.2 Debugging variables

Name Value Description
ANALYZE true Run webpack bundle analyzer on build
PRODUCTION_SOURCE_MAPS true Emit source maps on production build

1.3 Development

# Clone and change directory
git clone [email protected]:Thesoreon/frontendista.cz.git
cd frontendista.cz

# Install dependencies
pnpm install

# Run development server with HMR
pnpm dev

1.4 Other relevant repositories to set up

Name Description
cms.frontendista.cz Sanity.io based CMS
api.frontendista.cz Cloudflare workers

1.5 Bonus

  • Install recommended extensions for VSCode (listed in .vscode/extensions.json)

2. Environments

Name Description URL
local rapid development local.frontendista.cz
staging production-like, testing purposes staging.frontendista.cz
production production frontendista.cz

frontendista.cz's People

Contributors

susickypavel avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

frontendista.cz's Issues

Environment variables checker

Implement a checker that throws an error when the required environment variable is not supplied.
This checker should run before any node.js code (e.g. in getStaticProps).

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.