GithubHelp home page GithubHelp logo

udacity / cd0354-monolith-to-microservices-project Goto Github PK

View Code? Open in Web Editor NEW
29.0 4.0 1.3K 5.64 MB

Project code for cd0354 Monolith to Microservices at Scale course taught by Justin Lee

License: Other

Shell 0.89% TypeScript 80.57% JavaScript 4.66% HTML 8.20% SCSS 5.67%

cd0354-monolith-to-microservices-project's Issues

Packages won't install in "udagram-frontend"

Following the instructions to install the packages to run ionic build and I faced a few challenges.
I'm on Ubuntu 22.04.
Node 17.9.0
npm 8.18.0

First, I ran npm install . and I got this error
image

So I proceeded to delete fsevents from node_modules and package.json and then run npm install . again. This time the packages were installed with a lot of warnings of deprecated packages

image

Since I had already installed ionic globally I went ahead to run ionic build and had these errors thrown in my face
image

What I tried

I updated the packages with ncu -u.
image

When I ran npm install it crashed and I had to run npm install --legacy-peer-deps for it to finally install the updated packages
image

When the packages were updated I went ahead to run ionic build and now I got this
image

I went ahead to do a google search and I found on StackOverflow that I had to take out es5BrowserSupport from angular.js which I did and then I reran ionic build

image
image

I'm stuck here. I don't know what else to do. Is there something I'm missing? Any suggestions or contributions will be greatly appreciated

The AWS Bucket name should be without the arn

The AWS Bucket name should be without the arn:aws:s3::: preceding the bucket name in set_env.sh file. This acted as a blocker for me and other learners during our projects. I really wanted the upcoming learners not to go through the same route. I have created a PR for this but for some reasons, I could not link the PR to this issue

Using a smaller base image for the frontend service

Hello,
The frontend service uses beevelop/ionic as its base image. The issue is, that this base image size is 3.39 GB, it comes with unnecessary dependencies such as Cordova and Android.

We can use a relatively much smaller base image, consisting of only node, for example, you can use node:14.15.5-alpine3.13 which has the size of roughly only 40 MB, and then install the ionic CLI dependency.

An example alternative Dockerfile would be

## Build
FROM node:14.15.5-alpine3.13 as build
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY package*.json ./
RUN npm ci
RUN npm install -g @ionic/cli
# Bundle app source
COPY . .
RUN ionic build
## Run 
FROM nginx:alpine
#COPY www /usr/share/nginx/html
COPY --from=build /usr/src/app/www /usr/share/nginx/html

How to run project in local?

  • hello udacity, in 2023 which version of node and npm installed to run this project?
  • I use window how to by lib fsevent which just support macOS?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.