This simulates a game auction, with a simple login screen.
The main branch has the work in AngularJS with the option to run it on a Docker container, but you will find another version of it in React on the other branch.
- NodeJs v10.15.3
- MongoDB v4.0.9 (not necessary if you use Docker)
- Docker version 18.09.6 (optional)
- docker-compose version 1.24.0 (optional)
After cloning this repository, install the npm modules from the server folder:
~/crossover$ cd server
~/crossover/server$ npm install
OBS: Make sure you have MongoDB server running at mongodb://127.0.0.1:27017/
From the server folder, type:
~/crossover/server$ MONGOURL=mongodb://<mongodb_address>:<port> node app.js
Listening on port 3000
- <mongodb_address> should be the address where your mongoDB server is running
- <port> is the mongoDB port, usually 27017
Then, on your browser, access http://localhost:3000/
If you want to run the app from a container, type the following command from the project's root folder:
~/crossover$ docker-compose -f docker/docker-compose.yml up
~/crossover$ docker-compose -f docker/docker-compose.yml down