Giter VIP home page Giter VIP logo

myparty's Introduction

Project with the ideia to train my skills on building a RESTful API

If you want to test the project by yourself, clone this to your machine and run:

npm i

To become more familiar with Docker, I've created the MongoDB instance with it. If you want to do the same, go to Docker and install Docker Desktop.

In the repository, you will find a docker-compose file. Access the project folder in your terminal and run:

docker compose up

Once all images were successfully installed, you will be able to view and manage the containers using the Docker Desktop app.

I've downloaded two Docker images, one for MongoDB and another for Express, which provides a web interface for interaction. This interface can be accessed at:

http://localhost:8081

If you don't want to use your root credentials to test the project, you can create a new user with only read and write permissions, as shown in the following command:

Creating a new user on our MongoDB container

### Creating a database and a User that can only Read and Write on it
docker exec -it MONGO_CONTAINER_NAME `
    mongosh --host localhost -u CONFIG_MONGODB_ADMINUSERNAME -p CONFIG_MONGODB_ADMINPASSWORD --authenticationDatabase admin `
    --eval "db.getSiblingDB('DB_NAME').createUser({user: 'USERNAME', pwd: 'USER_PASSWORD', roles: [{role: 'readWrite', db: 'DB_NAME'}]})"

myparty's People

Contributors

rgoncalvss avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.