Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsmean/tsmean
Typescript-mysql-express-angular-node seed for your next web-app!
https://github.com/tsmean/tsmean
angular boilerplate expressjs mysql nodejs seed starter-kit typescript
Last synced: 1 day ago
JSON representation
Typescript-mysql-express-angular-node seed for your next web-app!
- Host: GitHub
- URL: https://github.com/tsmean/tsmean
- Owner: tsmean
- License: mit
- Created: 2017-04-02T18:54:56.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-29T12:02:10.000Z (over 4 years ago)
- Last Synced: 2025-01-18T09:28:19.190Z (4 days ago)
- Topics: angular, boilerplate, expressjs, mysql, nodejs, seed, starter-kit, typescript
- Language: TypeScript
- Homepage: http://www.tsmean.com
- Size: 1.03 MB
- Stars: 171
- Watchers: 25
- Forks: 39
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Disclaimer
**Nobody is actively developing tsmean. This means that it's not recommended to use this as a starting point for new applications anymore. You can let yourself be inspired by the project, but don't fork it for your new projects.**
![tsmean logo](https://s3.eu-central-1.amazonaws.com/bersling/images/tsmean-logo.png)
This is a **starter kit** for webapps **completely written in TypeScript**.
The starter kit is using the following technologies:
- **M**ySQL
- **E**xpressJS
- **A**ngular 6
- **N**odeJs... and that's why it's called tsmean! We've carefully elected those technologies to be the best suit for building web apps with TypeScript. You get to use TypeScript now
on the client **and** the server! This leads to efficiency
through consistency. Read more about it here: www.tsmean.com.# Installation
## Prerequisits ##
- node (v6, v8 or v10) and npm
- git
- angular-cli (see https://github.com/angular/angular-cli)
- Docker (optional)## Install ##
### Cloning the project
```
git clone https://github.com/tsmean/tsmean your-project-name
cd your-project-name
```### Setting up the database
The easiest way to set up the MySQL database is to use docker and run:
```
docker run -p 3306:3306 --name mysql tsmean/mysql:2
```
This spins up a docker container with a MySQL instance that has matching settings with the backend. [Read more about the "MySQL in docker" option here](./docker/mysql/docker-mysql.readme.md). You can also set up MySQL directly on your system and create the databases with settings like you find them in `backend/properties/development.properties` and `backend/properties/test.properties` manually. Of course, you can also change the settings you find there to match your needs (for example setting a different user or password or database name).### Installing all node modules
```
npm install
```Under the hood [lerna](https://github.com/lerna/lerna) is used to install the multiple packages in backend, frontend and shared, but you don't need to be concerned with this too much for now.
# Backend
First `cd backend`, then:
- to spin up a REST-API server `npm start`. Check it out at http://localhost:4242
- To run the tests `npm test`# Frontend
First `cd frontend`, then:- to start the Angular app `npm start`. Check it out on http://localhost:4200
- you can develop all modules independently. For example, `cd src/app/user` and run `ng serve`.
This launches a minimal app only displaying the user module (i.e. without login etc).
You can test all modules using `ng test`.More info available in [frontend docs](./frontend/README.md).
# Live Demo
https://demo.tsmean.com[![screenshot](https://s3.eu-central-1.amazonaws.com/bersling/images/animals3.gif)](https://demo.tsmean.com)
# Homepage
http://www.tsmean.com