GithubHelp home page GithubHelp logo

astro-v2's Introduction

๐Ÿš€ Astro

Astro is a Docker Container management platform meant for servers that primarily run docker containers. Astro is powered by Node.JS which allows for easy prototyping and development.

This project is discontinued, and doesn't work. It's more of a demo for authentication

๐Ÿ“ Requirements

  • Docker That's It, docker handles installing Node, Express, and MongoDB in the containers by itself

โœ… Setting up environments

๐Ÿ’ป Development Environment

  1. Install Docker
  2. Run the following command to install everything and run the container:
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build
  1. Go to localhost:3000 and start developing (Volumes have been configured to allow the local machiene to make changes. The changes will appear and the docker app will reload. This only happens in development.)

NOTE When you want to start the container later, as long as you havn't modified the docker files, you can simply do the same command, but without the --build flag. You only need build when running for the first time, or you made a change in the Docker Related Files.

๐Ÿ”ฅ Production Environment

  1. Install Docker
  2. Run the following command to install everything and run the container: (This assumes you already pulled the repo to a folder on your server)
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build
  1. Make sure the port 5000 is forwarded on your machiene. You can also configure NGINX to proxy this to the outside world.
  2. Make sure to re-run the command whenever you update your application again.

NOTE Unlike the dev environment, the only volume used in prod is the mongodb storage. You need to restart your app for changes to take effect.


Thanks for checking out the template, if you want to learn docker by itself, consider watching this video: https://www.youtube.com/watch?v=9zUHg7xjIqQ&t=12131s (You also learn bits of MongoDB, Express, Redis, NGINX, and express-session)

astro-v2's People

Contributors

liondadev 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.