Skip to content

Commit

Permalink
Added incomplete docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
georgyKurian committed Aug 30, 2019
1 parent 9040a85 commit 114f5e6
Show file tree
Hide file tree
Showing 25 changed files with 13,170 additions and 13,144 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# download a base version of node from Docker Hub
FROM node:10

# create the working directory for the application called /app that will be the root
WORKDIR /app

# Copy the current directory contents into the container at /app
COPY . /app

# Install any needed packages specified in requirements.txt
# RUN pip install --trusted-host pypi.python.org -r requirements.txt

# Make port 80 available to the world outside this container
EXPOSE 3000

# Define environment variable
ENV NAME development

# npm install the dependencies and run the start script from each package.json
CMD cd web && npm install && npm run start
CMD cd api && npm install && npm run start
File renamed without changes.
4 changes: 3 additions & 1 deletion backend/package.json → api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "nodemon server.js",
"start": "node server.js"
},
"keywords": [],
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion backend/server.js → api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const bodyParser = require("body-parser");
const cors = require("cors");
const mongoose = require("mongoose");
const todoRoutes = express.Router();
const PORT = 3100;
const PORT = 3000;

let Todo = require("./todo.model");

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3"
version: "3.1"
services:
mongodb:
image: mongo
Expand Down
13,142 changes: 1 addition & 13,141 deletions package-lock.json

Large diffs are not rendered by default.

13,143 changes: 13,143 additions & 0 deletions web/package-lock.json

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.

0 comments on commit 114f5e6

Please sign in to comment.