Git Product home page Git Product logo

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: We use 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.

yarn

or

yarn install

If you prefer to use NPM instead, first remove the yarn.lock file and run:

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

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 Normalize.css, PostCss, Sass, Babel, Parcel, and Surge.

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.

PostCSS.

We use 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.

Sass.

We use 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.

We use Babel with @babel/preset-env, 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!

Parcel.

We use 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.

Surge.

We use 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.

🚨 Found issues?

Please create a ticket.

🎗 Would you like to contribute?

Create a pull request. Become a sponsor ❤️

👩‍⚖️ 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

reblim avatar

Watchers

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