Programming language that features programming in native Hindi language
Writing programs in native languages is made possible with this project. Online Hindi Compiler supports writing syntax in Hindi language, and doing basic programming that involves taking user inputs, generating outputs, using conditional if, if-else and looping statements.
Contributions to the project are welcome.
###Prerequisites:
- [Docker] (https://www.docker.com)
- Docker Get Started Guide
###Steps to run:
- Install Docker
- Run this command
docker pull dockerservant/online-hindi-compiler
- After the image is pulled, start server
docker run -d -p 80:80 --name ohc dockerservant/online-hindi-compiler
- In your web browser, go to
http://localhost:80
. - Copy any of sample hindi programs from the folder
Sample Hindi Programs
. - Run the program, or create your own program using instructions mentioned in the landing page.
###Dockerfile Explained
- Docker helps set up a php-apache configuration as specified in the Dockerfile.
FROM php:7.0-apache
pulls a docker image that containes php7 and apache server bundled togetherCOPY src/ /var/www/html/
copies all contents insidesrc
folder to/var/www/html/
, so that apache server can serve these project files. Defuault path for apache to serve files is/var/www/html/
.
###Steps to build docker image
- Save Dockerfile with the commands mentioned above.
- Build a docker image using
docker build -t online-hindi-compiler .
This creates an image namedonline-hindi-compiler
. - Login to docker using
docker login
. You need a docker hub account for this. Create one if you haven't. - Find your
IMAGE ID
usingdocker images
. It displays a list of docker images installed in your system. - Tag the built image with your docker hub username into a repo. Run
docker tag 05b6e61c6b24 dockerservant/online-hindi-compiler
where05b6e61c6b24
is theIMAGE ID
anddockerservant
is the username. - Push the newly tagged image to docker hub using
docker push dockerservant/online-hindi-compiler
. - Share the published repo alongwith installation instructions as mentioned above.