Giter Club home page Giter Club logo

design-auctions's Introduction

SETTING UP

First, if you don't have the Docker installed, you can do it clicking here - to open in a new tab, press CMD(Mac) or CTRL(Win) and click - download and install it. We'll need it to go further.

While you wait the download, let's create some aliases to help you with most repetitive commands

dexec() {
    docker exec -it $1 sh -c $2
}
alias ownership='sudo chown -R $USER:$USER .' # run it if you see a permission denied error
alias app-init='sh init.sh' # run to create the enviroment
alias app-start='sh start.sh' #  run every time you want to start the app.
                              # It will run migrations and gem or packegesinstalations

To run commands inside your container, you can run dexec, passing the container name as first parameter and the command at the end.

๐Ÿšจ Alert: Don't forget the quotes!

Exemples:

dexec container-name 'rails db:create db:migrate db:seed'
dexec container-name 'rails c'

If you are running Docker on Linux, the files rails new created are owned by root. This happens because the container runs as the root user. If this is the case, after adding it to your zshrc, you can use this alias to change the ownership of the new files.

ownership

INITIALIZATION (Only first run)

Go to the directory you want to clone the project and run

git clone [email protected]:jucaesmanhoto/design-auctions.git

Navigate into the new directory

cd design-auctions

If the docker is installed, you can build the enviroment and create the development database by running

app-init

STARTING THE APP

Now, you can just run the app and start working :)

app-start

design-auctions's People

Contributors

jucaesmanhoto 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.