GithubHelp home page GithubHelp logo

hackathon-front's Introduction

REACT-STARTER-WCS

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

It uses ViteJS โšก๏ธ

Getting started ๐Ÿ“Œ

You can install it globally OR use npx instead

npx react-starter-wcs my-fresh-app

cd my-fresh-app

npm run dev

Extra dependencies ๐Ÿ“Œ

You can add some extra dependencies during the install prompt.

Currently, none of them add the extra template files.

Caprover ๐Ÿ“Œ

You can add pre-made config files if you use Caprover as your deployment solution. Those are a Nginx config file, a Dockerfile and a captain-definition (needed for every Caprover app).

For CI/CD with Github Actions, see below.

GitHub Actions ๐Ÿ“Œ

THESE ARE TEMPORARLY DISABLED !

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

hackathon-front's People

Contributors

aeryle avatar tomsarava avatar thomasbarrial avatar

Stargazers

 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.