Giter VIP home page Giter VIP logo

eci-aygo-lab3's Introduction

Description

Create a post feeds page with authentication and some real-time experience.

Project structure

The project has the following sub-projects

  • feedsaygo: This is the frontend built in react js
  • feedsback: Backend for the services and the local database
  • feedstack: CDK with the resources required to run ths in AWS

The architecture

This is the basic architecture of this laboratory.

  1. The frontend component is written in ReacJs, the user will be able to create a new account using the cognito APIS, this includes sign up, email verification and log in. Once those 3 steps are completed Cognito will send the user data and the tokens to keep the session alive.

  2. Every request from the frontend to the backend will have the tokens retreived from Cognito, from the backend side there is one additional validation calling a validation endpoint from cognito to verify that the received token from the frontend are correct and without modifications.

  3. Once the validation process is executed then rhe request will be routed to the corresponding API route.

How to run

The stack

First execute npm run synth && npm run deploy in the feedsstack project. This will create the resources required to this laboratory (Cognito, user pools, roles etc). Remember that CDk will take your credentials and configuration from ~/.aws/aws_credentials

The frontend

Before running the frontend update the user pool id(created with cdk) and the region here

Once that is completed run npm run start this will deploy the frontend in the port 3000

The backend

The backend has a in memory database, for simplicity in this laboratory there is not a dedicted databasee (in the TODO list). npm run start will start the project in port 9000

Demo

TODO

TODO

  • Base workflow working
  • Add a real DB
  • Auth for websockets

eci-aygo-lab3's People

Contributors

lufedi avatar

Watchers

James Cloos avatar  avatar

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.