mirror of
https://github.com/eliasrenman/gardentron.git
synced 2026-03-16 20:46:07 +01:00
30 lines
607 B
Markdown
30 lines
607 B
Markdown
# server
|
|
|
|
> The server for handling two way communication with a iot Device
|
|
|
|
## About
|
|
|
|
This project uses Express. An open source framework for building APIs and applications.
|
|
|
|
## Getting Started
|
|
|
|
1. Make sure you have [NodeJS](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed.
|
|
2. Install your dependencies
|
|
|
|
```
|
|
cd path/to/server
|
|
yarn
|
|
```
|
|
|
|
3. Start your app
|
|
|
|
```
|
|
yarn build # Compile TypeScript source
|
|
yarn migrate # Run migrations to set up the database
|
|
yarn start
|
|
```
|
|
|
|
## Testing
|
|
|
|
Run `yarn test` and all your tests in the `test/` directory will be run.
|