Getting Started

We'll cover the following

Introduction

Authors on Educative can set up their own environments for code executions for a course. A custom environment can be set up by providing a tarball containing:

i) a Dockerfile

ii) resources containing the code required to run your application in the Docker environment

All the live and non-live code execution can then be configured to execute in the custom environment created by the Author.

Now, in this project, you will learn how to set up the Educative platform for MERN stack application. For learning purposes, we will try to set up the Basic-MERN-Stack-App which is available on GitHub. You can access it by clicking here. To import it into your Single Page App (SPA), you will have to provide your GitHub token and then import the repository.

Before diving into the setup, here are some of the things you need to consider:

  • Every application will be set up in a unique way according to the requirements of that application. This tutorial will enable you to learn the process through which you will go while setting up your application. You might not need the exact steps as they will vary according to your application and requirements.
  • You need to be a little familiar with Docker and Dockerfile.
  • Don’t worry if anything seems overwhelming. Educative will always be there to support you.

Understanding the Requirements

If you have accessed the code repository, you will notice the following README.md which contains instructions to set up the tutorial locally:

widget

Assessing from the image above, this application has the following requirements:

  1. MongoDB
  2. Node.js
  3. yarn
  4. Coding files

Before we start with the setup, I want you to read the information on the following links: