GithubHelp home page GithubHelp logo

udagram's Introduction

Hosting a Full-Stack Application

Udagram

This application is provided to be deployed to AWS so that it's available for everyone.

The application require some configuration before starting

  1. AWS RDS -- Where the databse will be created
  2. AWS S3 -- Where the Front-End will be hosted
  3. AWS Elastic Beanstalk -- Where the Back-End will be hosted

The application is automated usind CircleCli pipleine. Documentation

Dependencies

- Node v14.15.1 (LTS) or more recent. While older versions can work it is advisable to keep node to latest LTS version

- npm 6.14.8 (LTS) or more recent, Yarn can work but was not tested for this project

- AWS CLI v2, v1 can work but was not tested for this project

- A RDS database running Postgres.

- A S3 bucket for hosting uploaded pictures.

Installation

Provision the necessary AWS services needed for running the application:

  1. From the root of the repo, navigate udagram-api folder to install the node_modules . After installation is done start the api in dev mode with .
cd udagram/udagram-api
npm install
npm run dev
  1. Without closing the terminal in step 1, navigate to the udagram-frontend to intall the node_modules . After installation is done start the api in dev mode with .
cd udagram/udagram-frontend
npm install
npm run start.
  1. You have to create .env file with all the required enironment variables:
# .env

# Database connection information
POSTGRES_HOST
POSTGRES_USERNAME
POSTGRES_DB
POSTGRES_PASSWORD
DB_PORT
PORT

# AWS information
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION
AWS_PROFILE
AWS_BUCKET
URL

JWT_SECRET

Testing

This project contains two different test suite: unit tests and End-To-End tests(e2e). Follow these steps to run the tests.

  1. cd starter/udagram-frontend
  2. npm run test
  3. npm run e2e

There are no Unit test on the back-end

Unit Tests:

Unit tests are using the Jasmine Framework.

End to End Tests:

The e2e tests are using Protractor and Jasmine.

Built With

  • Angular - Single Page Application Framework
  • Node - Javascript Runtime
  • Express - Javascript API Framework

Links

Front-End-Link

Back-End-Link

CirlceCli
CircleCI

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.