GithubHelp home page GithubHelp logo

luiscl94 / old_gobarber Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 5.12 MB

Project developed with the rocketseat bootcamp using NodeJS, ReactJS and ReactNative

JavaScript 87.35% HTML 0.95% Starlark 0.57% Java 6.28% Ruby 0.71% Objective-C 4.15%

old_gobarber's Introduction

Gobarber

Back-end application

Inside back-end directory run yarn install to install all back-end project dependencies.

Now you need to setup a postgress, a mongodb and a redis Docker container. If you have docker installed you can run docker ps to see the containers running on your machine.

Running the containers

All 3 container can be run with the following commands:

docker run --name postgresql -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
docker run --name mongodb -p 27017:27017 -d -t mongo
docker run --name redis -p 6379:6379 -d -t redis:alpine

Run docker ps to check if your containers are up. You will see something like this:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
55b6f0727b6c redis:alpine "docker-entrypoint.s..." 2 hours ago Up 1 hours 0.0.0.0:6379->6379/tcp redis
00f13f8dda62 mongo "docker-entrypoint.s..." 2 hours ago Up 1 hours 0.0.0.0:27017->27017/tcp mongodb
e376cfb2b6c2 postgresql "docker-entrypoint.s..." 2 hours ago Up 1 hours 0.0.0.0:5432->5432/tcp postgres

Running database migrations

With your container running you can initialize the tables of our database running the migration: yarn sequelize db:migrate

Run back-end application

Now configure your .env file and run the command yarn dev to start the back-end application, it will use the port 3333.

For our queues, we have a redis database running in background for our jobs, run this with yarn queue


Front-end-web application

Inside front-end-web directory run yarn install to install all front-end-web project dependencies. Then run the command yarn start to start the front-end-web application

Final results of the web front-end app:

  • SignUp

  • SignIn

  • Profile

  • Dashboard 1

  • Dashboard 2


Mobile application

Inside mobile directory run yarn install to install all mobile project dependencies. Then ....

Final results of the mobile app:

  • SignUp

  • SignIn

  • Profile

  • Dashboard

  • New Appointment

    • Select provider

    • Select date and time

    • Confirm appointment

old_gobarber's People

Contributors

luiscl94 avatar

Watchers

James Cloos avatar  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.