MERN
MongoDB, Express, ReactJS and NodeJS app. Using Swagger for Docs Api.
Config your .env file
- Copy
.env-getting-started
and rename it to .env - Config your
.env
file
After you have installed both:
- git clone https://github.com/alemarcha/UMS.git
- cd UMS
- docker-compose up
- You should see at localhost:3000 our swagger docs now.
With Docker
Firstable you need Docker and docker-compose installed and external or local MongoDB installed. You can follow this links to install https://www.digitalocean.com/community/tutorials/como-instalar-y-usar-docker-en-ubuntu-16-04-es and https://www.digitalocean.com/community/tutorials/how-to-install-docker-compose-on-ubuntu-16-04
After you have installed both:
- git clone https://github.com/alemarcha/MERN.git
- cd MERN
- docker-compose up
- You should see at localhost:3001 our swagger docs now.
- You should see at localhost:8081 our app in ReacJS and login using test/test by default
Without Docker
Firstable you need Nodejs and MongoDB installed.
After that you should follow next steps:
- git clone https://github.com/alemarcha/MERN.git
- Install and init server.
- cd MERN/server
- npm install
- npm build
- You should see at localhost:3000 our swagger docs now.
- Install and init client
- cd MERN/client
- npm install
- npm dev
- After npm start it should open a browser screen in localhost:8081 with app in ReacJS.
Execute test with Mocha, chai and Supertest
- cd MERN/server
- npm install
- npm run test
You will see results of testing in command line
travis CI
Moreover you could see ourDevelopers
Alexis Martínez Chacón (alexis.martinez@juntadeandalucia.es)