This is the official repository for MS Paint Fan Adventures.
-
Install Node.js (LTS), our runtime of choice.
-
Install MongoDB (version 5.0.x, Community Edition), our database of choice. (MongoDB Compass is not required, so you do not need to install it if the MongoDB installer asks you to.)
-
Clone or download this repository.
-
Open a terminal in the repository's directory.
-
Enter
npm ito install the project's dependencies.
-
Enter
npm run dbto run the database, which is necessary for the website to function.-
If you open this repo's directory as a project in VS Code, given you have automatic tasks enabled, this will run automatically for as long as VS Code is open, so you should not run it manually.
-
To get automatic tasks to work in VS Code, if it doesn't work on its own, press
ctrl+shift+Pin VS Code, then select "Tasks: Manage Automatic Tasks in Folder", and then "Allow Automatic Tasks in Folder". Then pressctrl+alt+Rto refresh VS Code.
-
-
Enter
npm run devto run the web server in development mode.- Alternatively, use
npm run buildto compile a production build, and thennpm run startto run the compiled production web server. You can also usenpm run build-startto both compile and run in one command.
- Alternatively, use
-
If you ever edit an API's
APIHandlertypes, you must runnpm run generate-validatorsto automatically generate new API request validators.