Everyone's code
Everyone's code code repository.
How to use
Preparation
- Postgres 9 or 10.
- Nodejs 8 or Above.
- cmake
- libzmq3
- Clang-Format 6 or Above.
Installation process
- The .env file defines pghost, pgport, pguser, pgpassword, hash_rounds, session_secret. Refer to the server.js file to learn more about what you need. If you don't want to use the .ENV file, you can define it directly to the environment variable.
- Add a database called ModoocodedB to Postgres.
- Add SQL files in the /DB folder to DB.
- You can start the server with NPM Start. Listen in the 8080 port as a default.
- Run the remote code execution server with sudo ./remo-code. This is listed in the 8081 port.
New writing
If you want to add an article on my platform, you can write a new MD file in the /MD folder. For reference, my Markdown is almost similar to the original markdown grammar, but it defines some new grammar.
After adding a new article, please give the-MD in /md-parser /md-parser to create a html file that parsed the markdown in the static folder. After that, you can restart the server.