UNPKG

create-synxty-app

Version:

Synxty App - Start your projects like a pro

126 lines (96 loc) • 3.75 kB
<!-- omit in toc --> # Create a Synxty App <img src="https://raw.githubusercontent.com/synxty/cra-template-synxty/master/.github/assets/banner.png" /> <!-- omit in toc --> ## Start your projects like a pro <!-- omit in toc --> ### Table of Contents - [šŸ“ƒ Why?](#-why) - [šŸŽØ Creating a Project](#-creating-a-project) - [šŸ“ Folder Structure](#-folder-structure) - [ā–¶ļø Available Scripts Within the Created Project](#ļø-available-scripts-within-the-created-project) - [🧠 Learn More](#-learn-more) - [āš–ļø License](#ļø-license) ## šŸ“ƒ Why? <!-- omit in toc --> ### Well... āœ… TypeScript is default āœ… Next.js because SEO is essential and SSR is included āœ… styled-components, write CSS with JS? Thanks āœ… Jest, the only library you need to test your app behavior āœ… Your code will always be beautiful with Prettier āœ… ESLint to keep a code pattern between the team āœ… lint-staged to assure that every code gets linted when committed āœ… Your commits will be meaningful with commitizen and commitlint āœ… A complete README file, every project deserves one Overall, creating a project with `create-synxty-app` is as easy as create-react-app or create-next-app but it sets you and your team ready to develop with a much better experience. ## šŸŽØ Creating a Project Using npm, run the following command: `npx create-synxty-app my-app` or, using yarn: `yarn create synxty-app my-app` **Note:** Since you're probably going to run this commands in a full stack application, if you don't specify the name of the project it defaults to `web`. And that's it! ## šŸ“ Folder Structure After the installation completes, a new directory is created with the name of your app. This is the structure that you get inside your project: ```. my-app/ ā”œā”€ā”€ README.md ā”œā”€ā”€ node_modules/ ā”œā”€ā”€ package.json ā”œā”€ā”€ .gitignore ā”œā”€ā”€ .eslintrc.json ā”œā”€ā”€ .eslintignore ā”œā”€ā”€ tsconfig.json ā”œā”€ā”€ commitlint.config.js ā”œā”€ā”€ .babelrc ā”œā”€ā”€ setupTests.js ā”œā”€ā”€ jest.config.js ā”œā”€ā”€ next-env.d.ts ā”œā”€ā”€ next.config.js ā”œā”€ā”€ .prettierrc ā”œā”€ā”€ .github/ │ └── assets/ │ └── banner.png ā”œā”€ā”€ public/ │ ā”œā”€ā”€ favicon.ico │ └── synxty.svg └── src/ ā”œā”€ā”€ layouts/ │ ā”œā”€ā”€ Home/ │ │ ā”œā”€ā”€ index.tsx │ │ ā”œā”€ā”€ index.spec.tsx │ │ └── styles.ts ā”œā”€ā”€ pages/ │ ā”œā”€ā”€ _app.tsx │ ā”œā”€ā”€ _document.tsx │ └── index.tsx └── styles/ └── global.ts ``` ## ā–¶ļø Available Scripts Within the Created Project `npm run dev` or `yarn dev` Runs the app in development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser. The page will reload if you make edits. You will also see any lint errors in the console. ___ `npm run test` or `yarn test` Launches the test runner. ___ `npm run build` or `yarn build` Builds the app for production to the `build` folder. It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes. ___ `npm start` or `yarn start` Runs the app in production. ___ ## 🧠 Learn More To learn React, check out the [React documentation](https://reactjs.org/). To learn Next.js, check out the [Next.js documentation](https://nextjs.org/docs/getting-started). To learn styled-components, checkout the [styled-components documentation](https://styled-components.com/docs). ## āš–ļø License This template is open source software [licensed as MIT](LICENSE). ___ Thank you, made with šŸ’— by [Synxty](https://github.com/synxty).