Coder Social home page Coder Social logo

pycontw-2021's Introduction

pycontw-2021 ci pycontw-2021 cd nuxt

pycontw-2021

This is PyConTW 2021 Conference Website's frontend repository.

Set up a Development Environment

Requirements

  • node >= 12.20.2

You can refer to package.json file for more details.

Method 1: Develop on your local machine

  1. Clone this repository.
  2. Add Environment Variables to configure this project:
BUILD_TARGET=server                                                   
HOST=127.0.0.1
BASE_URL=http://127.0.0.1:9876
API_URL_BROWSER=http://127.0.0.1:9876
  1. Install dependencies:
npm install
  1. Serve with hot reload at localhost:3000:
npm run dev
  • Also, we have mock server to handle API on local:
# You need to add Environment Variables(Step.2). Otherwise, some of the pages may not work correctly.
npm run json-server

Method 2: Run Development Server with Docker

  1. Clone this repository.
  2. Simply run the docker-compose commands to launch or stop the mock API server & the dev server:
# Launch the dev server and the mock API server
docker-compose -f ./docker-compose-dev.yml up

# Stop the dev server and the mock API server
docker-compose -f ./docker-compose-dev.yml down

Start to contribute

  • You can choose method 1 or method 2 to build setup, then you can start to contribute. 🙌
  • Please follow Github Flow.

Build for production and launch server

npm run build
npm run start

# Or just run:
npm run serve

Generate static project

npm run generate

Check your code:

npm run lint

For detailed explanation on how things work, check out Nuxt.js docs.

pycontw-2021's People

Contributors

mattwang44 avatar flynnhou avatar josix avatar linooohon avatar setmao avatar yuyanghh avatar alice6373 avatar pcwang23 avatar dabingnai avatar allen91wu avatar maliaotw avatar jordansu avatar tomatoprinx avatar hungyiwu avatar lee-w avatar tai271828 avatar thicyo 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.