Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Inter IIT dev BOOTCAMP SCREENING TASK

Getting the server started

  1. Clone the repository
git clone https://github.com/Abhimanyu-dev/DevCamp.git
  1. Go into the backend directory
cd DevCamp
cd backend
  1. Create an env file and paste the following in it
MONGOURL = "mongodb+srv://abhi:abhi@cluster0.mojdm.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"
PORT = 5000
  1. Type the following commands in the terminal
npm install
node ./index.js

This will start the backend server written in express with mongo db. You can test the routes and websocket using postman. Available routes:

  1. localhost:5000/api/stocks/:ticker/:date : This fetches data for a particular stock(ticker) for a particular date
  2. localhost:5000/api/stocks/:ticker : This fetches all the for a particular stock.
  3. localhost:5000/api/stocks : This fetches all the data from the database

Getting the frontend running

  1. Go into the directory where you cloned the repo and then go into the frontend directory.
cd frontend
  1. Run the following command
npm install
npm run dev
  1. You can visit the page on http://localhost:5173

The frontend is not completed but it is able to connect to the backend server socket and display some data.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages