Coder Social home page Coder Social logo

reblim / fast Goto Github PK

View Code? Open in Web Editor NEW
137.0 7.0 5.0 304 KB

Develop, build, deploy, redeploy, and teardown frontend projects fast.

Home Page: https://www.producthunt.com/posts/fast-4

License: MIT License

HTML 76.14% JavaScript 2.64% SCSS 21.21%
javascript scss html5 boilerplate postcss autoprefixer sass babel parcel parcel-bundler

fast's Introduction

Fast ⚡️

Develop, build, deploy, redeploy, and teardown frontend projects fast ⚡️.

This is Fast

❤️ Become a sponsor.

Become a sponsor

📖 About Fast.

With so many frontend technologies available nowadays, sometimes it may feel a bit cumbersome to get started with a project.

Fast aims to alleviate this by providing a simple, yet powerful boilerplate, to get you started with any frontend project.

With Fast, you can develop, build, deploy, redeploy, and teardown frontend projects fast, really fast ⚡️.

⬇️ Get Fast.

To get fast, clone or download the repository.

🚏 Use Fast.

Using Fast is super simple. Simply open the Fast folder using your favorite code editor and install the necessary dependencies.

Note: Fast uses Yarn for fast, reliable, and secure dependency management but feel free to use NPM if you prefer.

⚠️ Are you on Windows?

Replace all instances of $npm_execpath in the package.json file with:

%npm_execpath%

Installing the necessary dependencies.

Using Yarn:

yarn

or

yarn install

Using NPM:

npm install

That's it! Now you are ready to start developing your awesome project 😎

💻 Start developing.

To start developing, run:

Using Yarn:

yarn start

or

yarn serve

Using NPM:

npm run start

or

npm run serve

The start script will start the server using the default port 3000. However, you will have to manually open your default browser on http://localhost:3000/.

The serve script will start the server and open your default browser on http://localhost:3000/.

Note: If you would like to run the server on a different port, simply update the port 3000 provided in the start script to the port of your preference.

🏗 Build for production.

If you would like to build the project to use your own deployment pipeline, you can run the build command:

Using Yarn:

yarn build

Using NPM:

npm run build

🚀 Deploy your project.

Deploying your project couldn't be easier! Thanks to Surge, you can deploy your entire project to your custom domain, or to a free surge.sh sub-domain e.g. your-awesome-project.surge.sh.

Note: To deploy to a custom domain, read Surge's documentation.

To deploy your project, run: Using Yarn:

yarn deploy

Using NPM:

npm run deploy

...and follow the command-line instructions. It's that easy!

🏁 Redeploy your project.

If you made further changes and need to redeploy your project, simply run yarn redeploy providing the deployment URL as the last argument to the command, like so:

Using Yarn:

yarn redeploy your-awesome-project.surge.sh

or (if using a custom domain)

yarn redeploy your-custom-domain.com

Using NPM:

npm run redeploy your-awesome-project.surge.sh

or (if using a custom domain)

npm run redeploy your-custom-domain.com

⚰️ Tear down your project.

There is a time when all projects must come to an end.

To tear down your project, run:

Using Yarn:

yarn teardown your-awesome-project.surge.sh

or (if using a custom domain)

yarn teardown your-custom-domain.com

Using NPM:

npm run teardown your-awesome-project.surge.sh

or (if using a custom domain)

npm run teardown your-custom-domain.com

🚧 Custom 404 page.

Surge also allows you to add a custom 404 – Not Found page.

You can override Surge’s default 404 – Not Found page with your own, completely custom one by simply adding a 404.html file in the root of your project.

💾 Core technologies.

At the core, Fast uses Parcel, Surge, Normalize.css, Sass, and Babel.

Parcel.

Fast uses Parcel for Blazing fast bundle times. Parcel uses worker processes to enable multicore compilation and has a filesystem cache for fast rebuilds even after a restart. Parcel uses Autoprefixer, a PostCSS plugin to parse CSS and add vendor prefixes to CSS rules using values from Can I Use. It is recommended by Google and used in Twitter and Alibaba. This allows you to write your CSS rules without vendor prefixes.

Note: If your project needs to support older browsers, simply update the browserslist declaration in the package.json file to your desired configuration, and both Babel and PostCSS's Autoprefixer will update to provide the necessary transformations through Parcel.

Surge.

Fast uses Surge for fast and simple, static web publishing through a single command. Surge allows you to deploy, update deploys (redeploy), and teardown your frontend projects in just a few seconds using default or custom domains for free.

Normalize.css.

Normalize.css makes browsers render all elements more consistently and in line with modern standards. It precisely targets only the styles that need normalizing.

Sass.

Fast uses Node-sass, a library that provides binding for Node.js to LibSass, the C version of the popular stylesheet preprocessor, Sass. It allows you to natively compile .scss files to CSS at incredible speed and automatically via a connect middleware.

Babel.

Fast uses Babel with @babel/preset-env through Parcel's default configuration, which is triggered based on the browserslist declaration in the package.json file. @babel/preset-env is a smart preset that allows you to use the latest JavaScript without needing to micromanage which syntax transforms (and optionally, browser polyfills) are needed by your target environment(s). This both makes your life easier and JavaScript bundles smaller!

🚨 Found issues?

Please create a ticket.

🎗 Would you like to contribute?

Read the Contributing Guidelines.

Report an issue.

Create a pull request.

Become a sponsor ❤️

🙌 Credits.

Thank you to all our contributors.

👩‍⚖️ License.

MIT License

Copyright (c) 2020 Milber Ferreira

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

fast's People

Contributors

0xflotus avatar dependabot[bot] avatar reblim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fast's Issues

NPM RUN DEPLOY bug

Hi,
I wanted to test fast but I can't deploy using npm (whole setup was initialized with npm).
When typed npm run build I've got
`MacBook-Pro-koko:fast.test koko$ npm run deploy

[email protected] deploy /Users/koko/Projects/fast.test
yarn build && cd dist && surge
sh: yarn: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] deploy: yarn build && cd dist && surge
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/koko/.npm/_logs/2020-10-04T22_10_08_146Z-debug.log`

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.