Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

MeetEng

Prospective RPI students and freshmen meeting seniors of the same major.

Running

To start docker in development mode (with hot reload):

docker-compose -f docker-compose.dev.yml up -d

The frontend, backend, and database are exposed on port 8080, 3000, and 27017 respectively.

Deployment

To deploy in production mode:

docker-compose -d up

The deployed port is currently 7655 for both the frontend and backend. Database is not visible to the outside.

DOCKER:

To get the containers docker has created for this project, type docker ps The first string of letters of each line of output that this command provides will be referred to as the 'container id' To see the console logs that a process in a docker container spits out, type docker logs <container id> To kill all docker containers, type docker kill $(docker ps -q) To run bash in a docker container from the command line, type docker exec -it <container id> /bin/sh

MongoDB:

To access MongoDB from the command line, type:

docker exec -it <mongo container id> /bin/sh
mongo

This should get you into the mongo shell. From here, commands can be run like show dbs --> list all databases MongoDB is managing. use meeteng --> go into the database for MeetEng show collections --> go into the collections that MongoDB is storing for MeetEng (users, upperclassmen, underclassmen, etc) db.<collection name>.find() --> list all entries that have been added to a collection db.users.deleteMany({"name" : "admin"}) --> delete all entries in the users database with the name of 'admin'.\