This project is micro service seed that created with express and apollo-server.
In order to create a new service based on this seed follow this steps:
- Create a new repository for your service.
- Clone this repository:
git clone https://github.com/Sagie501/ilend-service-seed.git
- Move to the cloned directory:
cd ILend-Service-Seed
- Change the remote:
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
- Push the files to the new remote:
git push -u origin master
Your current new service is exactly like the seed. We will need to make some changes in order to customize it. In order to do it follow this steps:
- Change the directory name to the name of the new repository.
- In the
packages.json
file change thename
field that will fit to your service name. - In the
config.ts
file change theserviceName
field that will fit to your service name. - Remove the
README.md
file. - Rename the
README-NEW.md
file toREADME.md
- Inside the new
README.md
file rename the title that will fit to your service name. - Inside the
entities
directory you will see example of entities. Remove them and add your entities directories. Now you can start develop yourschema
,resolvers
andconnectors
. - Inside the
data-source
directory you will find an example seed data source. Delete it, create your own data source and add the connectors to this data source - In the
root-resolvers
androot-schema
directories you will need to import yourschema
andresolvers
. - Follow the new
README.md
file in order to see how start using your new service.