Skip to main content

Run Backend

Backend is built with StrapiJS Node.js Headless CMS.

Important to not upgrade any packages especially strapi since strapi v4, support for mongodb is depreciated:

git clone https://github.com/team-embers/backend-infinite-gaming.git

Use mongorestore to use our dump to have content. Must have mongodb already & MongoDB Tools.

mongorestore --db databasename --verbose \path\dump\<dumpfolder>

You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.

yarn 

The command yarn installs all necessary dependencies you need to run our backend (you can also use npm install if youre using npm as your package manager).

Start backend server

note: must create .env file and ask for env variables to devs assigned to the project.

Run the development server:

cd <directory-backend>
yarn develop

The cd command changes the directory you're working with. In order to work with your newly cloned backend project, you'll need to navigate the terminal there.

The yarn develop command builds your website locally and serves it through a development server, ready for you to view at http://localhost:1338/.