> Primeiramente precisamos instalar o postgres, será instalado via docker
$ docker run --name customer_x -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
> Após rodar o comando, provável que apareça um número enorme no terminal, se sim, 100% que instalou correto.
Para verificar, digite.
$ docker container ps
ou
$ docker container start customer_x
> Se estiver tudo okay, bacana, vamos agora clonar o projeto na nossa máquina rodando o comando no terminal.
$ git clone https://github.com/vagnerwentz/customerx.git
> Após a instalação, devemos acessar a pasta server e rodar o comando abaixo para instalar as dependências.
$ yarn
> Acessar a pasta web para instalar as dependências.
$ yarn
> Logo as instalações devemos ter uma GUI para o banco de dados, no meu caso foi usado o DBeaver.
Para você configurar do seu jeito, basta acessar o arquivo ormconfig.json no server.
> Logo após o banco configurado também, vamos entrar na pasta server e digitar, parar gerar todas as migrations.
$ yarn typeorm migration:run
> Criar um seed na tabela de administrador para termos acesso no front-end, ou back-end via Insomnia ou Postman.
$ yarn seed:run
> Caso queira verificar no banco de dados se tudo ocorreu bem!
> Entrar na pasta server e rodar, para iniciar o servidor na porta 3333.
$ yarn dev:server
> Entrar na pasta web e rodar, para inicar o front-end na porta 3000.
$ yarn start
> Acessando o front-end, para acessar o front-end, usar
$ email: [email protected]
$ password: admincustomer
> Verificar o arquivo auth.ts em server/src/config/auth.ts
> E caso após 7 dias, entrar no MD5 on-line e gerar um HASH
> e colocar no lugar do secret
> Após isto, brincar conforme você queira, enjoy :smiley:
customerx's Introduction
customerx's People
customerx's Issues
:O
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.