Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/energywraith/simple-post-app
https://github.com/energywraith/simple-post-app
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/energywraith/simple-post-app
- Owner: energywraith
- Created: 2023-11-13T13:51:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-15T10:25:51.000Z (about 1 year ago)
- Last Synced: 2023-11-15T11:33:01.389Z (about 1 year ago)
- Language: TypeScript
- Size: 416 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MobileReality
```
git clone https://github.com/energywraith/MobileReality.git
```## Server
0. Enter server directory
```
cd root
```1. Install json-server
```
npm i -g json-server
```1. Run server
```
json-server db.json --port 3005 --middlewares ./server.js
```API
```
http://localhost:3005/posts
GET /posts - lista wszystkich
POST /posts - utworzenie nowego (w body podaj title i description)
GET /posts/{id} - pobranie pojedynczego
DELETE /posts/{id} - usuwanie
```## Client
0. Enter client directory
```
cd client
```1. Clone repository
```
git clone https://github.com/energywraith/MobileReality.git
```2. Change directory
```
cd MobileReality
```3. Install
```
npm install
```4. Run client
```
npm start
```