Giter VIP home page Giter VIP logo

coding-platform's Introduction

BUILT AN ONLINE CODING PLATFORM FROM SCRATCH AND DOCKERISED THE APPLICATION AND FINALLY HOSTED IN EC2 SERVER

BELOW ARE THE STEPS:

HOSTING A MERN APPLICATION ON EC2 INSTANCE

STEPS:

1.Launch the instance..(in mycase I launched t2.micro)

2.ssh to the instance and clone the github repo using git clone

3.install the latest node package(in my case I installed nodev18.18.0 since my different packages in the application was not supporting lower packages)

  curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh
  curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
  source ~/.bashrc
  nvm list-remote
  nvm install v18.18.0
  node -v

4.go inside the folder and enter the environment variables needed in the project along with other modules.

5.Open the port 3000 and 8000 in security group Screenshot (163)

6.run the command inside the ec2 Screenshot (160)

6.Hit the public IP in the ec2 server

Screenshot (161)

Commands to run docker:

building image:

  docker build -t imagename:version .

eg: docker build -t himashree/onlinecoding_platform:latest .

to containeraise image:

  docker container run -d -p 3000:3000 -p 8000:8000 himashree/onlinecoding_platform:latest

additional command:

to check continers:

  docker container ls

coding-platform's People

Contributors

hima10shree avatar

Watchers

 avatar

Forkers

himashree12345

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.