An open API service indexing awesome lists of open source software.

https://github.com/alexeykorkoza/testmean

Test application for working with map. User can add place and type of place.
https://github.com/alexeykorkoza/testmean

bootstrap es6 gulp leaflet-map mean-stack selectize yarn

Last synced: about 1 month ago
JSON representation

Test application for working with map. User can add place and type of place.

Awesome Lists containing this project

README

          

## Description
TestMEAN is test application for working with map.

## Demo
https://powerful-ocean-87208.herokuapp.com/

## Install
First of all, clone the repository:
```
git clone https://github.com/AlexeyKorkoza/TestMEAN.git
```

After that install packages using npm:

``` npm install ```

Using yarn:

``` yarn install ```

Create .env file where you must write credentials to Database. See .env.example as example

Create database with name ```interactive_map```

## Run
Start client part:

``` npm run webpack:watch ```

Start server part:

``` npm dev:watch ```

## API

Url | Method | Description |
------- | ---------------- | ---------:
/login | GET | Render login page
/login | POST | Log in application
/logout | GET | Log out from application
/signup | GET | Render signup page
/signup | POST | Sign up in application
/app | GET | Render main page
/api/v1/profile/:id/ | PUT | Update user profile
/api/v1/types/ | GET | Get all types of places
/api/v1/types/:id/ | GET | Get one type by id
/api/v1/types/ | POST | Create new type
/api/v1/types/:id/ | PUT | Update type
/api/v1/types/:id/ | DELETE | Remove type
/api/v1/places/ | GET | Get all places
/api/v1/places/:id/ | GET | Get one place by id
/api/v1/places/ | POST | Create new place
/api/v1/places/:id/ | PUT | Update place
/api/v1/places/:id/ | DELETE | Remove place

## Tests

``` npm run test ```