My second back-end project proposed by the Driven Education Bootcamp is the implementation of Chat UOL API, a Bate-Papo UOL clone, one of the most used online chats in Brazil.
-
Clone the repository:
git clone https://github.com/akiraTatesawa/api-bate-papo-uol.git
-
Navigate to the project directory:
cd api-bate-papo-uol
-
Install the dependencies:
npm install
-
Set your environment variables following the .env.example file:
URL_CONNECT_MONGO= PORT= DATABASE_NAME=
-
Initialize mongodb:
mongod --dbpath ~/.mongo
-
Run the server in dev:
$ npm run dev > server@1.0.0 dev > nodemon ./src/index.js [nodemon] 2.0.16 [nodemon] to restart at any time, enter `rs` [nodemon] watching path(s): *.* [nodemon] watching extensions: js,mjs,json [nodemon] starting `node ./src/index.js` Connected to the database... Server running on port 5000...