Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adrianhdezm/spa-boilerplate
A boilerplate for building Single-Page Applications with React and TypeScript
https://github.com/adrianhdezm/spa-boilerplate
jest json-server puppeteer react typescript webpack
Last synced: about 4 hours ago
JSON representation
A boilerplate for building Single-Page Applications with React and TypeScript
- Host: GitHub
- URL: https://github.com/adrianhdezm/spa-boilerplate
- Owner: adrianhdezm
- License: mit
- Created: 2019-04-10T19:59:11.000Z (over 5 years ago)
- Default Branch: develop
- Last Pushed: 2022-12-10T14:51:03.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T11:29:17.809Z (over 1 year ago)
- Topics: jest, json-server, puppeteer, react, typescript, webpack
- Language: TypeScript
- Homepage:
- Size: 3.29 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SPA Boilerplate
A boilerplate for building Single-Page Applications.
## Getting Started
To get you started you can simply clone the [spa-boilerplate](https://github.com/adrianhdezm/spa-boilerplate) repository and install all its dependencies:
### Prerequisites
You need git to clone the [spa-boilerplate](https://github.com/adrianhdezm/spa-boilerplate) repository and Node.js and its package manager (NPM) installed.
### Clone the project
Clone the [spa-boilerplate](https://github.com/adrianhdezm/spa-boilerplate) repository using [git](http://git-scm.com/):
```bash
git clone https://github.com/adrianhdezm/spa-boilerplate.git
cd spa-boilerplate
```If you just want to start a new project without the [spa-boilerplate](https://github.com/adrianhdezm/spa-boilerplate) commit history then you can do:
```bash
git clone --depth=1 https://github.com/adrianhdezm/spa-boilerplate.git
```The `depth=1` tells git to only pull down one commit worth of historical data.
### Install Dependencies
We get the tools we depend upon via `npm`, the [node package manager](https://www.npmjs.com).
```bash
npm install
```## Run the Application in a development environment
The simplest way to start this server is using the preconfigured development web server.
```bash
npm start
```Now browse to the app at `http://localhost:8080/`.
## Create a Bundle for the Application
This project use [webpack](https://github.com/webpack/webpack) for creating a bundle of the application and its dependencies
```bash
npm run build
```