Git Product home page Git Product logo

vite-mern-template's Introduction

vite-mern-template

Simple opinionated template for MERN stack with Vite and Redux Toolkit. This includes React+TypeScript with familiar configuration for vite.config.ts.

This has been created with the official Vite template (npm create vite@latest) and some extended setup. There are two separate folders called server and client. The entry point for the backend is server/src/index.js.

Thanks to awesome-vite for publishing this project.

Tools

Demo

vite-mern-template-gh-demo

Installation

npx degit apicgg/vite-mern-template my-app

Install dependencies

cd my-app
cd client
npm install
cd ..
npm install

Start the development server

npm run watch
npm run dev
  • Run the above two commands on different terminal sessions.

  • Remove the .git folder and initialize your own git repository.

  • In this case npm run watch needs to be executed before starting the development server with npm run dev as the TypeScript files need to be compiled to JavaScript before staring the dev server with node. ts-node can be used this to avoid this.

TODO

  • Create a npm CLI library for scaffolding projects.

License

MIT License.

Please review the License.

Contributors ✨

Contributions of any kind welcome! Kindly have a look into Contributing Guidelines

vite-mern-template's People

Contributors

apicgg avatar dependabot[bot] avatar depfu[bot] 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.