Drona is Starware.
This means you're free to use the project, as long as you star its GitHub repository.
Your appreciation makes us grow and glow up. ⭐
Refer to https://nodejs.org/en/ to install nodejs
Install create-react-app npm package globally. This will help to easily run the project and also build the source files easily. Use the following command to install create-react-app
npm install -g create-react-app
Clone the project in localhost
git clone https://github.com/betaoverflow/drona.git
Install all the npm packages. Go into the web folder and type the following command to install all npm packages
npm install
In order to run the application in development mode type the following command
yarn dev
The Application Runs on localhost:3000
Navigate to the main project folder in a seperate terminal. Then install all npm packages
npm install
If you don't have nodemon globally installed on your system, install it so the server can autorefresh
npm install -g nodemon
Now it's time to spin up the backend server. Run the lines
npm run dev
If you get an error immediately, don't worry. The final step is to connect to the MongoDB database.
Note: The Server Runs on localhost:8080
Spin up your cluster in MongoDB and replace your connection with URI in .env
If you face any problems, refer to the MongoDB website.
Install the MongoDB Node.js Driver with the following command:
npm install mongodb
Set up a MongoDB Atlas Database by following this short MongoDB setup video till the 3:20 mark. Stop after that mark!
On your Cluster home page, select CONNECT > Connect your application.
- Select Node.js in the drop down for your driver, and select the latest version.
- Then, copy the connecting string (URI).
- Paste this string as the value of mongoURI inside
.env
of this project.
Replace the <password>
section of the string with your Database Access password. Viola, your server should now successfuly connect to MongoDB!