Install Without Docker

In case you want to install fastCode Application Generator locally without using Docker, please follow the instructions below.

Windows

Install Dependencies

Install Spring Boot CLI

RUN curl -O https://repo.spring.io/release/org/springframework/boot/spring-boot-cli/2.1.4.RELEASE/spring-boot-cli-2.1.4.RELEASE-bin.zip
unzip spring-boot-cli-2.1.4.RELEASE-bin.zip
del *.zip
Setup two environment variables as specified below:
SPRING_HOME = (full-path to current directory)/spring-2.1.4.RELEASE
PATH = $SPRING_HOME/bin:$PATH

Install Node.js

curl -O https://nodejs.org/download/release/v10.15.3/node-v10.15.3-win-x64.zip
unzip node-v10.15.3-win-x64.zip
del *.zip
Setup two environment variables as specified below:
NODEJS_HOME = (full-path to current directory)/node-v10.15.3-linux-x64
PATH = $NODEJS_HOME/bin:$PATH

Install Angular CLI

npm install -g @angular/[email protected]

Install Prettier

npm install prettier-plugin-java -g
npm install prettier -g

Install Maven

curl -O https://archive.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.zip
unzip apache-maven-3.5.4-bin.zip
del *.zip
Setup two environment variables as specified below:
MAVEN_HOME = (full-path to current directory)/apache-maven-3.5.4
PATH = $MAVEN_HOME/bin:$PATH

Install Postgres JDBC Driver

curl -O https://jdbc.postgresql.org/download/postgresql-42.2.2.jar
mvn install:install-file "-Dfile=postgresql-42.2.2.jar" "-DgroupId=org.postgresql" "-DartifactId=postgresql" "-Dversion=42.2.2" "-Dpackaging=jar"

Install Git

Go to https://gitforwindows.org/ and download Git and install it.

Install PostgreSQL

Go To: https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
Install version 10.20 for Windows
Make sure you install the PostgreSQL server, PgAdmin, and Command-line tools.
Set the username for the database server as "postgres" and the password as "fastcode".

Create a database for fastCode Application Generator

Once you have installed the PostgreSQL server, create a database named "codegenoffline", and under this database, create a schema named "sample". Ensure the the database/schema is accessible using the postgresql username and fastcode as pasword.

Run the back-end and front-end of the fastCode Application Generator

Run the back-end

From the unzipped directory, run the following command from the cmd window.

java -jar codegen-0.0.1-SNAPSHOT.jar

Run the front-end

From the unzipped directory, run the following command from the cmd window.

ng serve --configuration production --port=4600