Web App created for building applications in voluntary work in NGOs and in teaching new professionals of Technology
Follow these steps and quickly your application will be running, remember the purpose of this project, be a volunteer and help some institution with your knowledge..
- Npm
npm install -g typescript @vue/cli
- Clone the repo
git clone https://github.com/ricardopadua/prologic-web.git
- Install NPM packages
npm install
- Compiles and hot-reloads for development
npm run serve
- Compiles and minifies for production
npm run build
- Lints and fixes files
npm run lint
- Configure the environment variables in the config folder
/config
, there are 3 configuration files, thedefault.json
that represents the development environment, theproduction.json
that represents the production environment and theindex.ts
that imports these configured environments and exports these constants to the application. Observe the example respectively:
{
"cryptography": {
"passwordDefault": ""
}
}
{
"cryptography": {
"passwordDefault": ""
}
}
import config from 'config';
// Cryptography configuration constant
const cryptography = {
passwordDefault: config.get<string>('cryptography.passwordDefault')
};
const environment = {
cryptography: cryptography,
}
export default environment;
- If you want to run the application in docker, configure the file docker-compose and after the command
docker-compose up --build -d
- Configure the environment variables for containers in
docker-compose.yml
file:
version: '3.4'
services:
prologic-web:
build:
context: ./
dockerfile: Dockerfile
args:
env: prd
# HASH_DATETIME=`exec date +%d%m%Y%H%M%S` docker-compose up --build -d
container_name: prologic-web-${HASH_DATETIME}
ports:
- "80:80"
See the sample gist configuration for a sample of configuration (environment variables).
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Ricardo Padua - @RicardoPdua4
Project Link: https://github.com/ricardopadua/prologic-web