Skip to content

Commit 74c8a07

Browse files
author
Mushap Kırım
committed
nodejs backend imp.
1 parent e574a76 commit 74c8a07

File tree

5,458 files changed

+462415
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,458 files changed

+462415
-0
lines changed

reduxEx/src/backend/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": [ "es2015" ]
3+
}

reduxEx/src/backend/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# React & Redux Movie App Backend
2+
That Restful API developed with Node.JS and Express.
3+
4+
## How to install
5+
Clone this folder and install dependencies.
6+
7+
`npm install`
8+
9+
## Enviroments variables
10+
Create a file named ".env" in the root directory and fill its contents as follows.
11+
12+
```ruby
13+
DB_HOST=xxx
14+
DB_NAME=xxx
15+
```
16+
17+
## Run the app
18+
`npm start:dev` // for locally
19+
20+
## Endpoints
21+
22+
| Route | HTTP Verb | POST body | Description |
23+
| --- | --- | --- | --- |
24+
| /api/movies | `GET` | Empty | List all movies. |
25+
| /api/movies | `POST` | {'title':'foo', 'cover':'cover url' } | Create a new movie. |
26+
| /api/movies/:_id | `GET` | Empty | Get a movie. |
27+
| /api/movies/:_id | `PUT` | {'title':'foo', 'cover':'new cover url'} | Update a movie with new info. |
28+
| /api/movies/:_id | `DELETE` | Empty | Delete a movie. |
29+

reduxEx/src/backend/app.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
runtime: nodejs
2+
env: flex

reduxEx/src/backend/node_modules/.bin/atob

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/atob.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/babel

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/babel-doctor

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/babel-doctor.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/babel-external-helpers

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/babel-external-helpers.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/babel-node

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/babel-node.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/babel.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/babylon

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/babylon.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/is-ci

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/is-ci.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/jsesc

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/jsesc.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/json5

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/json5.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/loose-envify

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/loose-envify.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/mime

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/mime.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/mkdirp

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/mkdirp.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/nodemon

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/nodemon.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/nodetouch

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reduxEx/src/backend/node_modules/.bin/nodetouch.cmd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)