-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from alexlee-dev/v0.2.0
📦 v0.2.0
- Loading branch information
Showing
13 changed files
with
216 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Contributing Guide | ||
|
||
- Contributing to **create-mern-application** is fairly easy. This document shows you how to get started. | ||
|
||
## Submitting changes | ||
|
||
- Fork the repo | ||
- <https://github.com/alexlee-dev/create-mern-application/fork> | ||
- Check out a new branch based and name it to what you intend to do: | ||
- Example: | ||
``` | ||
$ git checkout -b BRANCH_NAME | ||
``` | ||
If you get an error, you may need to fetch first by using | ||
``` | ||
$ git remote update && git fetch | ||
``` | ||
- Use one branch per fix / feature | ||
- Commit your changes | ||
- Please provide a git message that explains what you've done | ||
- Please make sure your commits follow the [conventions](https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53#file-commit-message-guidelines-md) | ||
- Commit to the forked repository | ||
- Example: | ||
``` | ||
$ git commit -am 'Add some fooBar' | ||
``` | ||
- Push to the branch | ||
- Example: | ||
``` | ||
$ git push origin BRANCH_NAME | ||
``` | ||
- Make a pull request | ||
- Make sure you send the PR to the <code>fooBar</code> branch | ||
- Travis CI is watching you! | ||
If you follow these instructions, your PR will land pretty safely in the main repo! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,88 @@ | ||
# create-mern-application | ||
A bootstrapper for creating a MERN application. | ||
<p align="center"> | ||
<a href="https://github.com/alexlee-dev/create-mern-application" rel="noopener"> | ||
<img width=256px height=256px src="https://res.cloudinary.com/alexlee-dev/image/upload/v1591215153/create-mern-application/create-mern-application.svg" alt="Logo"></a> | ||
</p> | ||
|
||
<h3 align="center">create-mern-application</h3> | ||
|
||
<div align="center"> | ||
|
||
[![NPM](https://img.shields.io/npm/v/create-mern-application.svg)](https://www.npmjs.com/package/create-mern-application) | ||
[![GitHub Issues](https://img.shields.io/github/issues/alexlee-dev/create-mern-application)](https://github.com/alexlee-dev/create-mern-application/issues) | ||
[![Dependencies](https://img.shields.io/david/alexlee-dev/create-mern-application)](https://github.com/alexlee-dev/create-mern-application) | ||
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE) | ||
|
||
</div> | ||
|
||
--- | ||
|
||
<p align="center">A bootstrapper for creating a MERN application. | ||
<br> | ||
</p> | ||
|
||
## 📝 Table of Contents | ||
|
||
- [About](#about) | ||
- [Getting Started](#getting_started) | ||
- [Usage](#usage) | ||
- [Built Using](#built_using) | ||
- [Authors](#authors) | ||
- [Acknowledgments](#acknowledgement) | ||
|
||
## 🧐 About <a name = "about"></a> | ||
|
||
I've made a lot of MERN applications lately, and I want to make that process easier for myself and for others, by creating a bootstrapper that mirrors the simplicity of starting a new application with [create-react-app](https://github.com/facebook/create-react-app). Thus, **create-mern-application** was born. | ||
|
||
### What is MERN? | ||
|
||
- **M**ongoDB - [MongoDB](https://www.mongodb.com/) - Database | ||
- **E**xpressJS - [ExpressJS](https://expressjs.com/) - BackEnd | ||
- **R**eact - [React](https://reactjs.org/) - FrontEnd | ||
- **N**ode - [Node](https://nodejs.org/) - Runtime Environment | ||
|
||
## 🏁 Getting Started <a name = "getting_started"></a> | ||
|
||
### Prerequisites | ||
|
||
- Node (>= v10.0.0) | ||
- NPM | ||
|
||
### OS | ||
|
||
- [x] MacOS | ||
- [x] Linux | ||
- [x] Windows | ||
|
||
### Installing | ||
|
||
`npm install -g create-mern-application` | ||
|
||
## 🎈 Usage <a name="usage"></a> | ||
|
||
`create-mern-application cool-app-name` | ||
|
||
### Changing the Source Language | ||
|
||
By deafault, **create-mern-application** will create your application as a JavaScript project. You can pass the `--typescript` flag to create a TypeScript project instead. | ||
|
||
`create-mern-application cool-app-name --typescript` | ||
|
||
Want support for an additional language? Feel free to open a [new issue](https://github.com/alexlee-dev/create-mern-application/issues/new). | ||
|
||
### Interactive Mode | ||
|
||
You can choose to use the application in an interactive mode by passing the flag `--interactive`. | ||
|
||
This mode grants you several additinoal options. | ||
|
||
## ⛏️ Built Using <a name = "built_using"></a> | ||
|
||
## ✍️ Authors <a name = "authors"></a> | ||
|
||
- [Alex Lee](https://github.com/alexlee-dev) - Application Developer | ||
|
||
## 🚀 Additional Features to Be Added | ||
|
||
## 🎉 Acknowledgements <a name = "acknowledgement"></a> | ||
|
||
- Some inspiration from the developers behind [create-react-app](https://github.com/facebook/create-react-app). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ const pkg = require("../package.json"); | |
Sentry.init({ | ||
dsn: | ||
"https://[email protected]/5262339", | ||
release: "0.1.0", | ||
release: "0.2.0", | ||
}); | ||
|
||
import { | ||
|
@@ -42,7 +42,7 @@ const main = async (): Promise<void> => { | |
* The program that parses the initial user input | ||
*/ | ||
const program = new commander.Command("create-mern-application") | ||
.version("0.1.0") | ||
.version("0.2.0") | ||
.arguments("<application-name>") | ||
.usage(`${chalk.blueBright("<application-name>")} [options]`) | ||
.action((name) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
body { | ||
font-family: "Roboto", "Helvetica Neue", sans-serif; | ||
margin: 0; | ||
} | ||
|
||
#app { | ||
align-items: center; | ||
color: #0e0e0e; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
min-height: 100vh; | ||
} | ||
|
||
#logo { | ||
height: 300px; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
declare module '*.svg'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
body { | ||
font-family: "Roboto", "Helvetica Neue", sans-serif; | ||
margin: 0; | ||
} | ||
|
||
#app { | ||
align-items: center; | ||
color: #0e0e0e; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
min-height: 100vh; | ||
} | ||
|
||
#logo { | ||
height: 300px; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.