Giter Site home page Giter Site logo

wizic's Introduction

REACT-STARTER-WCS

bootstrapper CLI for React App with basic conf for Caprover deployment.

It uses Parcel as bundler

Getting started ๐Ÿ“Œ

In the project directory, you can run:

npm run dev

Runs the app in the development mode.
Open http://localhost:1234 to view it in the browser.

npm run build

Builds the app for production to the dist folder.

npm run lint

This app came with basic ESLint config (Prettier + Airbnb), you can run it every time using this script. Remember, it also come with Husky, so it will automatically runs every time you commit !:fire:

GitHub Actions ๐Ÿ“Œ

Those create files for automate different actions, give an eye here.

ESLint on PR โœ๏ธ

Running ESLint on Pull Request on master and dev. Customize it in the .github/workflows/eslint.yml file.

Build and push to production branch โœ๏ธ

Building the app and push it to a production branch once code is merged on master Customize it in the .github/workflows/builddeploy.yml file.

โ— โ— If you choose this action alongside Caprover config files, please replace the default Dockerfile with the following one โ— โ—

FROM nginx:1.13.9-alpine
RUN rm -rf /etc/nginx/conf.d
RUN mkdir -p /etc/nginx/conf.d
COPY ./default.conf /etc/nginx/conf.d/
COPY . /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

BUT actually, it doesn't create the Caprover config files on that branch, you have to do it on your own, following this :

# Create your GitHub repo and link it...
git push -u origin master

# Wait for the action to perform

git fetch --all

git checkout production

# copy/paste Dockerfile, captain-definition and default.conf from master branch

git add Dockerfile captain-definition default.conf
git commit -m "youhou, basic config added ! :fire:"
git push -u origin production

Then setup your Caprover app

wizic's People

Contributors

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