Skip to content

Repository files navigation

OnlineCodeEditor

Table of contents

List of packages

PackageDescription
compressionExpress 4 middleware.
codemirrorVersatile text editor implemented in JavaScript for the browser.
expressSinatra inspired web development framework for node.js.
mongodbcross-platform document-oriented database
mongooseMongoDB ODM.
morgan
serve-faviconExpress 4 middleware offering favicon serving and caching
monikerRandom name generator
socket.ioJavaScript library for realtime web applications
supertestHTTP assertion library.
chaiBDD/TDD assertion library.
mochaTest framework.

Project structure

NameDescription
config/index.js
config/development.jsondevelopment settings
config/production.jsonproduction settings
config/test.jsontest settings

Prerequisites

Running the app

git clone --depth=1 https://github.com/AlexandruSimandi/OnlineCodeEditor.git someproject
# change the directory to the project onecd someproject
# required for mongo-morgan
sudo apt-get install build-essential
# install node package manager dependecies
npm install
# install bower dependencies
bower install
# run the default gulp
gulp
# start the server
node server.js

In production you can use pm2 or forever (production process managers for Node.js applications)

# use this instead of server.js
pm2 start server.js

When you develop the app you can use nodemon, install it sudo npm install -g nodemon and then replace node server.js with nodemon server.js. Nodemon will watch for changes in the app and then automatically restarts the server.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages