This project has two different projects in the two initial tabs:
- File System App
- Url Shortener
(For the file system application, records get stored in localstorage on your browser)
- Client side
In the Project directory, please run the following after making sure you have npm installed:
npm install
- Server side
Go into the 'backend' directory and please run the following command after making sure you have anaconda installed:
conda env create -f environment.yml
conda activate pipe_17
- Database
Run the following scripts to pull mongo from Docker Hub assuming Docker is installed:
docker pull mongo
- Client side
In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser. - Server side
Go into the 'backend' directory and please run the following commands:
python server.py
If you would like to use MongoDB to store, please set the variable USE_MONGO to True in the same file. - Database
Run the following to get mongodb up and running if necessary:
docker run -p 27017:27017 --name mongodb mongo
To configure the server url to hit from the frontend, please edit the url variable in url.json file.