A website for the USNCO discord server
- Node.js
- Internet Connection
- Open terminal in root directory
- Run
npm run install-all - Run
npm run audit-all
Optionally, just run npm run install-audit on the root directory.
- Open terminal in root directory
- Run
nodemon server.js
This opens up the server on port 3001.
- Open terminal in client directory
- CD to client folder
- Run
npm start
This opens the development app on port 3000
- Open terminal in root directory
- Run
npm run start-dev
You may have to wait for hte development app to finish initializing.
Several scripts were written for quality of life
install-allinstalls both server-side and client-side packagesaudit-allaudits both server-side and client-side packagesinstall-auditruns bothinstall-allandaudit-allfor youstart-devstarts the development server
Server config files can be found in /server/config/ folder. config.js contains the current Mongo connection uri. sampleconfig.js shows what the file should look like.
The client folder contains a .env file containing SKIP_PREFLIGHT_CHECK=true
Heroku config variables can be set in the heroku manager or through the heroku CLI.
NODE_MODULES_CACHE is set to true and NPM_CONFIG_PRODUCTION is set to false.
This may not be needed, but it is left there so it doesn't break anything.