Code Monkey home page Code Monkey logo

freshframework's Introduction

freshframework

Test deno fresh framework for AST Advanced Sales Technologies GmbH

This is a small single-page Real-time Chat Application where anonymous users can send messages to a shared text board without prior registration.

advantages:

● The application containerized with Docker.
● A NoSQL database used to store the sent messages.
● Denoland’s Fresh framework used for front end.
● Multiple users can send messages simultaneously.
● Publisched on GitHub.
● GitHub Actions used to automatically lint the code on push.

Links:

● Link to application with the Dockerfile: https://github.com/danilovmy/freshframework/

● Source for the application hosted on a GitHub. https://github.com/danilovmy/freshframework/
● A documentation about application https://github.com/danilovmy/freshframework/tree/main/docs/description.md
● Design decisions descriptions https://github.com/danilovmy/freshframework/tree/main/docs/architecture.md

demo deployed on deno:

https://danilovmy.deno.dev/
Please, reload page, if you see on honeypot step the blank screeen.
This is restriction from deno.dev fee-less server.

How to start application:

● Install Docker
● Install MongoDb local. Service should be achieviable for any per "mongodb://127.0.0.1:27017/" (no pasword no user)
● Clone repository
● Open CLI in cloned folder
● Enter: "docker build -t fresh ."
● After the end of install process enter:
For windows: docker run -p 8000:8000 --volume %cd%:/app fresh
For _nix: docker run -p 8000:8000 --volume $(pwd):/app fresh
● Enjoy

Additional settings:

By default chat use Mongodb connection to database placed local mongodb://127.0.0.1:27017/", no pasword, no user

in .env file can be added:
MONGODB_URL= your own database connection with pass and user in connection string

if you want to use Atlas MongoDB Cloud: \

MONGODB_TYPE=atlas
MONGODB_USER=user
MONGODB_PASSWORD=password
MONGODB_HOST1=connection to main server for your DB on Atlas MongoDB Cloud
MONGODB_HOST2=connection to additional server for your DB on Atlas MongoDB Cloud
MONGODB_HOST3=connection to additional reserve server for your DB on Atlas MongoDB Cloud

Roadmap for future:

  • add .dockerignore
  • dockerize mongodb
  • add docker-compose
  • add Tests
  • add css styles for chat
  • Write article abbout this use-case on medium, dev.to and in russian segment.

freshframework's People

Contributors

danilovmy avatar

Watchers

 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.